letica
V2EX  ›  问与答

struts2后缀可以匹配任意的字符串吗?

  •  
  •   letica · Aug 20, 2013 · 3257 views
    This topic created in 4660 days ago, the information mentioned may be changed or developed.
    struts2的后缀是这么配置的,如果用户想要指定多个请求后缀,则多个后缀之间用英文逗号隔开:
    <constant name="struts.action.extension" value="do, action">

    我的问题是,想匹配任意但是未知的后缀,试了一下用 *号是不可以的,有办法可以解决吗?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2854 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 09:20 · PVG 17:20 · LAX 02:20 · JFK 05:20
    ♥ Do have faith in what you're doing.