![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Bug
7仔要加油
再来一杯Java,谢谢
展开
-
程序包org.yaml.snakeyaml不存在
在springboot中解析的Yaml,找不到org.yaml.snakeyaml,但是我在依赖里面可以找到这个包,我用的springboot的版本是2.2.2,找了网上也没有什么好解决的办法,尝试更换sprringboot的版本,我换成2.5.0后成功了。 <springboot.version>2.5.0</springboot.version>...原创 2021-07-17 16:43:36 · 4917 阅读 · 0 评论 -
springboot中templates的资源不能访问
把html页面放在static文件夹可以访问,但是放在templates文件夹却不能访问初学spring boot的时候,在网上找了许多吗,终于找到一个。大多数的博客说,由于springboot的保护机制,如果实在想去访问,需要设置application配置文件,但是这种方式不推荐。我在这里说的是,既然这个是存放模板的文件夹,你必须使用模板引擎。市面上的模板引擎:ThymeleafFreeMarker这里我使用的是Thymeleaf,先要引入坐标<!--thymeleaf模板引擎原创 2020-06-09 15:10:13 · 2367 阅读 · 0 评论 -
关于maven中jdk1.5版本废弃的解决
方式一打开maven安装目录,打开\conf\setting.xml ,找到profiles标签,填入:<profile> <id>jdk-1.8</id> <activation> <activeByDefault>true</activeByDefault> <jdk...原创 2020-04-14 17:46:33 · 130 阅读 · 0 评论 -
spring boot中出现com.mysql.cj.jdbc.exceptions.CommunicationsException
具体报错如下:com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packe...原创 2020-02-29 19:27:17 · 4772 阅读 · 0 评论 -
关于??login.tip_zh_CN??的报错
关于??login.tip_zh_CN??的报错在做国际化登陆时具体报错如下:原因是没有在文件里面加入国际化代码的classpath,在application.properties中加入:#国际化文件spring.messages.basename=i18n.login这样就可以了。[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Hl79aHW5-158...原创 2020-02-28 19:56:54 · 2680 阅读 · 5 评论 -
关于idea中提交代码到gitee中Push rejected
具体报错如下:在idea中左下角有一个Terminal,打开它,或者快捷键Alt+F12输入,运行以下3句话:git pullgit pull origin mastergit pull origin master --allow-unrelated-histories执行完后重新push,就可以了。最后显示如下:...原创 2020-02-25 14:17:16 · 1523 阅读 · 3 评论 -
Spring Boot中关于junit报错:Failed to resolve org.junit.plaform:junit-platform-launcher:1.5.
具体报错如下:只需要在pom.xml中加入以下依赖就可以了 <dependency> <!-- this is needed or IntelliJ gives junit.jar or junit-platform-launcher:1.3.2 not found errors --> <groupId>org.junit.platform&l...原创 2020-02-24 21:55:31 · 1915 阅读 · 0 评论 -
关于java.lang.NoClassDefFoundError: io/netty/channel/EventLoopGroup
报错如下:解决办法:在pom中加入依赖: <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> <version>4.1.32.Final</...原创 2020-03-12 17:20:10 · 11025 阅读 · 7 评论