letica
V2EX  ›  问与答

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

  •  
  •   letica · Aug 20, 2013 · 3243 views
    This topic created in 4651 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   ·   1372 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:18 · PVG 01:18 · LAX 10:18 · JFK 13:18
    ♥ Do have faith in what you're doing.