Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yst-dch-score
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yuan 袁孟宇
yst-dch-score
Commits
5445eec3
Commit
5445eec3
authored
Aug 17, 2020
by
Fei 张飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实习生培训内容代码
parent
736cc0b2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
3 deletions
+23
-3
HELP.md
HELP.md
+4
-0
README.md
README.md
+16
-0
application-dev.yml
yst-dch/src/main/resources/config/application-dev.yml
+1
-1
application-local.yml
yst-dch/src/main/resources/config/application-local.yml
+1
-1
application-prod.yml
yst-dch/src/main/resources/config/application-prod.yml
+1
-1
No files found.
HELP.md
0 → 100644
View file @
5445eec3
##针对mvn install 乱码
解决方式如下:
1.
idea配置utf-8,父配置文件增加utf-8的配置,
2.
打开File | Settings | Build, Execution, Deployment | Build Tools | Maven | Runner在VM Options中添加-Dfile.encoding=GBK,切记一定是GBK
README.md
0 → 100644
View file @
5445eec3
##采用技术版本说明
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下
yst-dch/src/main/resources/config/application-dev.yml
View file @
5445eec3
#####测试环境
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
:
...
...
yst-dch/src/main/resources/config/application-local.yml
View file @
5445eec3
###开发环境
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
:
...
...
yst-dch/src/main/resources/config/application-prod.yml
View file @
5445eec3
#####生产环境
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment