springboot
wang_he_qing
这个作者很懒,什么都没留下…
展开
-
spring boot 日志配置方法
<?xml version="1.0" encoding="UTF-8"?><configuration> <!-- 控制台输出 --> <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender"> <encoder> ...原创 2019-10-25 15:43:41 · 196 阅读 · 0 评论 -
o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/demo].[dispatcherServlet] - Servlet.service()
当你的程序执行到service实现层mapper方法调用的时候报如下的错:o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/demo].[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [/demo]...原创 2019-10-25 10:57:00 · 9378 阅读 · 4 评论 -
Cannot load configuration class: org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration
当启动时报错,查看错误信息,如Cannot load configuration class: org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration就是无法加载配置类mybatis,为什么无法加载,就需要去看pom文件的mybatis依赖有没有写错,以及版本mybatis的3.4.0及以上版本只支持mybatis-sp...原创 2019-10-24 12:46:08 · 26953 阅读 · 3 评论 -
Error resolving template [hello], template might not exist or might not be accessible by any of the
网上大多数的说法是要加@responseBody 其实是细节问题1.--------Error resolving template [hello], template might not exist or might not be accessible by any of the configured Template Resolvers报错原因:spring.thymeleaf.pref...原创 2019-10-22 10:53:02 · 1560 阅读 · 0 评论