SpringBoot问题解决
柠萌味的西瓜糖
这个作者很懒,什么都没留下…
展开
-
报错 com.mongodb.MongoSocketOpenException: Exception opening socket
报错 com.mongodb.MongoSocketOpenException: Exception opening socket 发现原因 我们的项目是父子项目,父项目是别人建的 里面添加 mongodb 的 starter ,而我的子项目并不需要连接 mongodb 我也没有配置...转载 2021-03-11 09:38:57 · 900 阅读 · 0 评论 -
初步搭建springboot应用,报错:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 翻译就是:无法配置DataSource:未指定'url'属性,也无法配置嵌入数据源。 很明显,就是你在应用中没有配置datasource的一些相关属性,例如:地址值啊,...转载 2021-03-11 09:27:16 · 116 阅读 · 0 评论 -
SpringBoot整合thymeleaf报错
报错内容如下: 解决方案: 注释pom.xml中thymeleaf的版本号,让其自动选择。 <thymeleaf.version>3.0.9.RELEASE</thymeleaf.version> 然后再启动就可以成功访问templetes下的html界面了!原创 2021-03-10 13:10:36 · 153 阅读 · 0 评论