Struts对一些错误的总结和记录

1 一个是log4j日志框架包。

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'log4j2.debug' to show Log4j2 internal initialization logging.

是说没有在src目录下发下那个用于记录日志对的xml文件。如果默认那么只能把日志打印在打印台。一般你百度一下个xml文件的配置,然后放在src文件夹下面就好了。

 

2 .struts2.3和struts2.5的区别。

①filter(拦截器)路径变化了

②当你使用动态方法调用的时候需要增加一个

 <global-allowed-methods>delete</global-allowed-methods>   

意思是哪些方法允许动态方法调用。

启用动态方法调用需要配置常量来开启。

 

 

猜你喜欢

转载自blog.csdn.net/qq_38296051/article/details/81840970