springboot
swpu-maniac
这个作者很懒,什么都没留下…
展开
-
springboot启动报错
报错内容 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-02-17 19:27:47.515 ERROR 5968 --- [ main] o.s.b.d.LoggingFailureAn...原创 2019-02-17 19:32:59 · 544 阅读 · 0 评论 -
springboot报错
写redis配置类时报错 Cannot resolve constructor 'RedisCacheManager(org.springframework.data.redis.core.RedisTemplate) 错误原因:依赖版本号的缺少 解决方案: pom中加入: <dependency> <groupId>org.springframework.dat...原创 2019-02-18 10:34:15 · 197 阅读 · 0 评论 -
过时的WebMvcConfigurerAdapter及新的写法
最近在学SpringBoot,然后使用idea写自定义的一些mvc配置时发现WebMvcConfigurerAdapter已经过时。 @Configuration public abstract class WebMvcConfigurerAdapter implements WebMvcConfigurer { ... } 而新的写法有两种(推荐第一种) /*第一种是实现WebMvcConfi...原创 2019-06-22 12:28:28 · 585 阅读 · 0 评论