spring报错
青衫&换酒
编程无极限
展开
-
log4j:WARN No appenders could be found for logger 解决办法
使用log4j时不起作用,每次执行完出现以下提示: 解决办法如下: 在配置文件log4j.properties(文件名必须这个,放在src目录下) 全选粘贴如下代码: ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.err log4j.appender.stdout.layout=org.apach原创 2021-06-24 18:01:06 · 307 阅读 · 0 评论 -
Spring: ApplicationContext cannot be resolved to a type
Spring: ApplicationContext cannot be resolved to a type 创建spring的IOC对象时 ApplicationContext ctx = new ClassPathXmlApplicationContext(“applicationContext.xml”); 其中,ApplicationContext cannot be resolved to a type,ClassPathXmlApplicationContext cannot be resol原创 2021-06-15 20:17:06 · 2534 阅读 · 0 评论