spring boot 学习笔记(一)
来源:互联网 发布:写频软件 编辑:程序博客网 时间:2024/06/11 08:37
一.关于jdk版本问题报错
解决:1.pom.xml中配置
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
2.settiing.xml
<profile>
<id>jdk17</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.7</jdk>
</activation>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
</properties>
</profile>
3.项目编译版本调成需要的jdk版本
二、Cannot load driver class: com.mysql.jdbc.Driver
错误代码:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.21</version>
</dependency>
正确代码:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
- spring boot 学习笔记(一)
- spring boot学习笔记(一)
- spring boot学习笔记(一)
- Spring Boot学习笔记(一)
- Spring Boot入门学习笔记(一)
- spring boot学习笔记(一)
- Spring Boot 学习笔记(一)
- Spring Boot 学习笔记(一)
- Spring Boot学习笔记-从Hello World开始 (一)
- Spring Boot 学习笔记(一)——入门
- Spring Boot 学习笔记一(SpringBoot启动过程)
- Spring-Boot学习笔记(一) 项目搭建和HelloWold
- Spring Boot学习笔记----mybatis注解(一)
- Spring Boot学习笔记:(一)简介与HelloWorld搭建
- Spring-Boot学习笔记一:Hello World
- 学习笔记一:Spring Boot快速入门
- Spring Boot学习(一)
- Spring Boot学习(一)
- 树莓派系统安装和调试
- 变形课 hdu1181 (深搜题)
- P1201 [USACO1.1]贪婪的送礼者Greedy Gift Givers
- SAP MD04详解
- 工作常用加密整理
- spring boot 学习笔记(一)
- xmllistModel无法解析正确路径的xml
- 条码规范——EAN13
- P1202 黑色星期五
- unity使用苹果ARKit-01:Unity-ARKit-Plugin unity使用苹果ARKit
- Springmvc 后台接受String[] 问题
- URL “#”、”?”、"&“作用 详解
- Lintcode——排序专题总结
- code::block中常用的快捷键