Struts2框架修改访问路径后缀的三种方式

第一种:在struts.xml配置文件中配置(最常用)

<constant name="struts.action.extension" value="action,,do"</constant>

第二种:在src下自定义struts.properties配置文件

struts.action.extension=action,,cc

第三种:在web.xml的前端控制器中配置常量

<init-param>

  <param-name>struts.action.extension</param-name>

  <param-value>action,,do</param-value>

<init-param>


相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2021-07-26
  • 2021-10-15
猜你喜欢
  • 2021-12-12
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
  • 2022-01-07
  • 2021-06-15
  • 2022-12-23
相关资源
相似解决方案