使用mysql数据库,或者进行更新sqlite版本为最新的 参考 https://www.cnblogs.com/wishwzp/p/7113403.html 继续报错 The GPG keys listed for the “MySQL 5.7 Community Server” repository are already installed but they are not correct for this package. Check that the correct key URLs
今天往web.xml中添加一个Listener监听器就出现了异常
Tomcat服务器启动时工件部署失败
查看日志得知是没有注入引用dao层的bean:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ProductTypeService' available
这个时候就要检查自己相关的bean注入是否完成了,查看代码时发现的确是缺少了一个bean注入:
手动
最近遇到一个问题,项目之前使用了Redis,可正常启动,然后最近对Redis部分进行了一些微调,再启动服务提示如下错误:
Consider defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration.
出现该错误的原因可能有很多,记录下几种解决办法。
1、SpringBoot版本问题:
pom.xml中如果有配置
<dependency>