-
springboot下配置mybatis的call-setters-on-nulls属性
使用Mybatis时,如果查询语句中某些字段值是null的,则这个字段就无法返回。对于后台数据处理来说,这是一个致命的问题,于是通过修改Mybatis的配置来解决这个问题。 在springmvc下,在mybatis的配置文件里面增加以下配置即可:mybatis.configuration.call-setters-on-nulls=true 但在springboot中,则有时...
-
springboot log4j DatePattern 配置不起作用的问题
在springboot当中配置了log4j输出到文件:# LOG4J配置log4j.rootCategory = INFO,stdout,filelog4j.appender.file = org.apache.log4j.DailyRollingFileAppenderlog4j.appender.file.file = logs/web.loglog4j.appender...