
框架
山不让尘,川不辞盈。
这个作者很懒,什么都没留下…
展开
-
java.lang.IllegalArgumentException: Could not resolve placeholder
这个解决方式却很奇葩原创 2022-11-15 16:47:11 · 20795 阅读 · 1 评论 -
Consider defining a bean named ‘mongoTemplate‘ in your configuration.
我这个报错是这样的:系统让你注入一个,那就注入一个吧 @Bean public MongoClient mongoClient() { return new MongoClient("localhost", 27017); } @Bean public MongoTemplate mongoTemplate() { return new MongoTemplate(mongoClient(), "yygh_hosp");原创 2022-03-28 09:21:24 · 2529 阅读 · 5 评论 -
org.springframework.data.redis.RedisConnectionFailureException
在你的配置文件中写上:management.health.redis.enabled=false这就是关闭redis的健康检查,这样就不会去自动检查redis的状态了,OKay原创 2022-03-27 10:12:03 · 1100 阅读 · 0 评论 -
使用springboot产生的Access denied for user ‘‘@‘localhost‘ (using password: NO)
今天用springboot写个demo,踩了个坑。当时,我的配置文件中是这么写的,这是idea提示的写法。注意:前面是有spring-datasource的,这是写在了application.yml当中启动服务器,然后输入网址。。。结果,程序中一直报错,如下(改了很久,还报了其它的错误)各种谷歌、百度,最后被我找到了,嘿嘿修改了一下我的配置文件中的写法,如下driverClassName: com.mysql.cj.jdbc.Driverusername: rootpassword:原创 2022-01-01 16:23:38 · 581 阅读 · 0 评论