Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions wxappdemo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ int insert(User record) 插入数据(返回值为ID)
User selectByPrimaryKey(Integer id) thorws SQLException 按主键查询
int updateByPrimaryKey(User record) 按主键更新
int updateByPrimaryKeySelective(User record) 按主键更新值不为null的字段

Cancer:将application.properties改为application.yml,并增加mysql连接配置。
注释掉jdbc.properties配置
1 change: 0 additions & 1 deletion wxappdemo/src/main/resources/application.properties

This file was deleted.

6 changes: 6 additions & 0 deletions wxappdemo/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
spring:
datasource:
url: jdbc:mysql://39.108.104.201:25000/xcx?characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
username: root
password: 123456
driver-class-name: com.mysql.jdbc.Driver
8 changes: 4 additions & 4 deletions wxappdemo/src/main/resources/properties/jdbc.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jdbc.url=jdbc:mysql://39.108.104.201:25000/xcx?characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
jdbc.username=root
jdbc.password=123456
jdbc.driver=com.mysql.jdbc.Driver
#jdbc.url=jdbc:mysql://39.108.104.201:25000/xcx?characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
#jdbc.username=root
#jdbc.password=123456
#jdbc.driver=com.mysql.jdbc.Driver