![](https://img-blog.csdnimg.cn/20210104101900738.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
SpringBoot 踩坑纪实
记录学习SpringBoot问题
大可i不必
这个作者很懒,什么都没留下…
展开
-
java.lang.RuntimeException: org.codehaus.plexus.component.repository.exception.ComponentLookupExcept
创建了一个SpringBoot项目,但是通过Maven添加依赖的时候报错原创 2022-11-17 22:00:44 · 5546 阅读 · 2 评论 -
SpringBoot整合JPA 数据库自动增加字段问题记录
Spring整合JPA启动的时候忽然发现,数据增加了两个字段,我当时就很纳闷了,我自己写的有实体有字段,并且跟数据一致,为什么要给我增加两个字段哪?我的实体如下:启动的时候就变成这样了然后就找度娘问原因,度娘告诉我JPA会把我们的驼峰命名法改成下划线,但是我们可以通过配置不让它去重命名我们的字段名称。 jpa: hibernate: ddl-auto: update naming: implicit-strategy: org.hibernate原创 2021-03-13 16:50:54 · 2080 阅读 · 1 评论 -
SpringBoot引入JDBC,Mysql未配置数据源报错
SpringBoot引入JDBC,Mysql未配置数据源报错:Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.经查阅资料发现 :spring boot默认会加载org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration解决办法:1:在启动类原创 2021-03-13 10:45:54 · 496 阅读 · 0 评论 -
SpringBoot踩坑(2)
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.启动时报错在网上发现有好多说法,有的说是数据库连接名错误,有的说版本问题。如果说是链接名错误,下面还有有其他的报错信息。但是这个错误并没有。其实报错的真正原因是端口冲突。把冲突的端口kill掉或者 在配置文件更改端口问题解决可以正常启动了...原创 2021-01-04 10:40:42 · 94 阅读 · 0 评论 -
SpringBoot踩坑(1)
According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set.在配置好所有东西,页面访问数据库的时候报错。报错原因:大概就是Mysql的版本太高,JDBC的版本太低导致的报错。解决办法:在jdbc:mysql://localhost:3306/user?useUnicode=true&c原创 2021-01-04 10:30:01 · 156 阅读 · 0 评论