2024
2024-01-07
不知道ApiCloud中的com.uzmap.pkg.uzapp.UZApplication对webView做了什么,使用原生webView打开网页总是显示空白一片。
2024-01-08
controller统一异常处理类:org.springframework.web.servlet.HandlerExceptionResolver
2024-01-16
选项目,要选有正向激励的。(正向激励的意思是,做一点,会收获一点回报,再回一点,收获更多,螺旋上升,渐进激励)
2024-03-06
SpringBoot项目中,tomcat启动的,明明架包中有log4j-slf4j-impl-2.17.2.jar这个类和log4j的包,就是没有日志打印。
启动过程中显示:No SLF4J providers were found.
后来通过对比,没日志的是log4j-slf4j-impl-2.17.2.jar版本的,其它项目中,有日志的是log4j-slf4j2-impl-2.20.0.jar版本的,就是
比较新的那个包,替换比较旧的包,后来重启服务器,居然成功了,有日志了。
后来回过头来看日志,才发现自己吃了目光短㳀的亏,原来重点在之后的几句话。。。。
SLF4J(W): No SLF4J providers were found. SLF4J(W): Defaulting to no-operation (NOP) logger implementation SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details. SLF4J(W): Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier. SLF4J(W): Ignoring binding found at [jar:file:/project/api/user/WEB-INF/lib/log4j-slf4j-impl-2.17.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J(W): See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.
我了个去。
2024-03-08
Springboot controller中返回的json, 修改date默认返回是时间戳
在application.properties中加上
spring.jackson.serialization..write-dates-as-timestamps=true
2024-04-17
一个类找不到方法,明明用的是最新的jar包,还是报这个错误,后来在idea查到,这个类分别在不同的两个包里面,一个包里的那个类确实没有这个方法
tomcat应该是加载了没有那个方法的类,解决办法,把那个没方法的类,从jar包里面删除。
posted on 2024-01-02 15:35 angelshelter 阅读(12) 评论(0) 编辑 收藏 举报