From f6c165dc211a1ac6cbd196db81e0e3be197d34fb Mon Sep 17 00:00:00 2001 From: Cancer <49286167+cxyl@users.noreply.github.com> Date: Sat, 20 Jul 2019 23:28:00 +0800 Subject: [PATCH 1/4] Create README.md --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..6d456a9 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# wxapp From a468f080fc5c28de0981c060c0bc89bed25e43f7 Mon Sep 17 00:00:00 2001 From: Cancer <49286167+cxyl@users.noreply.github.com> Date: Sat, 20 Jul 2019 23:29:27 +0800 Subject: [PATCH 2/4] Delete README.md --- README.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 6d456a9..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# wxapp From f79abdbab777d55a422ce535e00a0f7e742709bd Mon Sep 17 00:00:00 2001 From: cxy Date: Sat, 20 Jul 2019 23:47:25 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wxappdemo/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wxappdemo/README.md b/wxappdemo/README.md index 9baa630..d346587 100644 --- a/wxappdemo/README.md +++ b/wxappdemo/README.md @@ -7,3 +7,5 @@ int insert(User record) 插入数据(返回值为ID) User selectByPrimaryKey(Integer id) thorws SQLException 按主键查询 int updateByPrimaryKey(User record) 按主键更新 int updateByPrimaryKeySelective(User record) 按主键更新值不为null的字段 + +Cancer:第一次提交测试 \ No newline at end of file From d21bdfaac6ceb9c6f2bfa380edea5c1275ceb563 Mon Sep 17 00:00:00 2001 From: cxy Date: Sun, 21 Jul 2019 00:25:30 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E5=A5=BD=E5=A5=BD=E6=89=93=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wxappdemo/README.md | 3 ++- wxappdemo/src/main/resources/application.properties | 1 - wxappdemo/src/main/resources/application.yml | 6 ++++++ wxappdemo/src/main/resources/properties/jdbc.properties | 8 ++++---- 4 files changed, 12 insertions(+), 6 deletions(-) delete mode 100644 wxappdemo/src/main/resources/application.properties create mode 100644 wxappdemo/src/main/resources/application.yml diff --git a/wxappdemo/README.md b/wxappdemo/README.md index d346587..3583af0 100644 --- a/wxappdemo/README.md +++ b/wxappdemo/README.md @@ -8,4 +8,5 @@ User selectByPrimaryKey(Integer id) thorws SQLException 按主键查询 int updateByPrimaryKey(User record) 按主键更新 int updateByPrimaryKeySelective(User record) 按主键更新值不为null的字段 -Cancer:第一次提交测试 \ No newline at end of file +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