diff --git a/wxappdemo/README.md b/wxappdemo/README.md index 9baa630..3583af0 100644 --- a/wxappdemo/README.md +++ b/wxappdemo/README.md @@ -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配置 \ No newline at end of file diff --git a/wxappdemo/src/main/resources/application.properties b/wxappdemo/src/main/resources/application.properties deleted file mode 100644 index 8b13789..0000000 --- a/wxappdemo/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ - diff --git a/wxappdemo/src/main/resources/application.yml b/wxappdemo/src/main/resources/application.yml new file mode 100644 index 0000000..b2cdc72 --- /dev/null +++ b/wxappdemo/src/main/resources/application.yml @@ -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 diff --git a/wxappdemo/src/main/resources/properties/jdbc.properties b/wxappdemo/src/main/resources/properties/jdbc.properties index bca6de8..44bf138 100644 --- a/wxappdemo/src/main/resources/properties/jdbc.properties +++ b/wxappdemo/src/main/resources/properties/jdbc.properties @@ -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 \ No newline at end of file +#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 \ No newline at end of file