Idea项目无法引用其他已经引用了的项目的方法的解决方法
用maven加载
clean compile package install
几项
Java
switch
case语句没有break时,匹配成功后,从当前 case 开始,后续所有 case 的值都会输出。
如果当前匹配成功的 case 语句块没有 break 语句,则从当前 case 开始,后续所有 case 的值都会输出,如果后续的 case 语句块有 break 语句则会跳出判断。
不再支持源选项 5。请使用 6 或更高版本。
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<java.version>11</java.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
放在pom.xml中
Mysql8.0链接JDBC
jdbc:mysql://localhost:3306/*****?useSSL=false&serverTimezone=UTC
SpringBoot
Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
原因是浏览器使用https协议,将 https改为http协议即可。
SpringBoot
This application has no explicit mapping for /error, so you are seeing this as a fallback.
错误原因: 很可能是Application启动类放的位置不对。要将Application放在最外层,也就是要包含所有子包。
解决办法: 将Application放在最外层,也就是要包含所有子包。
SpringBoot
Invalid artifact id
无效的 artifact id
在创建springboot项目的时候报了一个错,很简单,在写 artifact id的时候,不要出现大写字母,特殊字符最好也不要用
SpringBoot
Error creating bean with name 'dataSource' defined in class path resource.....
配置Spring的数据库链接池时出现这个意思,由于框架的配置会出现很多不同的问题
数据库连接池是别人制作出来的产品不同的数据库链接池,配置也不相同。
阿里版本:
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.url=jdbc:mysql://localhost:3306/ssm_db?serverTimezone=UTC
#spring.datasource.username=root
#spring.datasource.password=123456
Spring会报错
黑马版本:
spring:
datasource:
url: jdbc:mysql://localhost:3306/ssm_db?serverTimezone=UTC
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 123456
Spring能正常链接
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。