Commit 5445eec3 authored by Fei 张飞's avatar Fei 张飞

实习生培训内容代码

parent 736cc0b2
##针对mvn install 乱码
解决方式如下:
1.idea配置utf-8,父配置文件增加utf-8的配置,
2.打开File | Settings | Build, Execution, Deployment | Build Tools | Maven | Runner在VM Options中添加-Dfile.encoding=GBK,切记一定是GBK
##采用技术版本说明
1.JDK11+
2.maven3.6+
3.springboot2.3.1.RELEASE
4.spring-boot-starter-data-jpa2.3.1.RELEASE
5.querydsl4.3.1
##项目启动说明
1.确保mvn compile 来编译生成jpaDsl所需的Q开头类. 请采用jdk11 maven3.6+
2.直接启动YstLxyApplication即可.
一些问题解决
1. application-local.xml 是要自己拷贝一个 不然报错
2. 需要开启 Enable annotation processing
3 . 要配置好项目的jdk 等环境 11
4. mvn complier 前可以先 mvn install下
#####测试环境
spring:
datasource:
url: jdbc:mysql://192.168.1.130:3306/yst_dchDB?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
url: jdbc:mysql://192.168.1.130:3306/train_db?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 123456
jpa:
......
###开发环境
spring:
datasource:
url: jdbc:mysql://192.168.1.130:3306/yst_dchDB?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
url: jdbc:mysql://192.168.1.130:3306/train_db?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 123456
jpa:
......
#####生产环境
spring:
datasource:
url: jdbc:mysql://192.168.1.130:3306/yst_dchDB?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
url: jdbc:mysql://192.168.1.130:3306/train_db?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 123456
jpa:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment