仅供参考-接上文 springmvc 1.设置Log4jConfigListener日志监听(可以为开发调试.发布后运行的意外调试.等) 在src/main/resources目录下新建log4j.properties文件(可以在别的目录),这些配置内容网上有很多, # This is the configuring for logging displayed in the Application Server log4j.rootCategory=error, stdout, logfile…
今天在一个基于SSM的项目里出现以下报错 Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx': no matching editors or conversion strategy found 报错内容大概理解,就是前端输入给后台的是一个字符串,后台需要Date类型嘛,这之间的转换出错,解决办法是: 在对应的controller中增加属性编辑器:…