From be6ea0f41ce31160d32f8ab19d9b182dc7d64e60 Mon Sep 17 00:00:00 2001 From: juzeon <812312770@qq.com> Date: Wed, 18 Aug 2021 10:58:37 +0800 Subject: [PATCH] modify application.properties --- .../com/update/update/service/impl/refreshServiceImpl.java | 4 +++- src/main/resources/application.properties | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/update/update/service/impl/refreshServiceImpl.java b/src/main/java/com/update/update/service/impl/refreshServiceImpl.java index 1a36afa..d1fb345 100644 --- a/src/main/java/com/update/update/service/impl/refreshServiceImpl.java +++ b/src/main/java/com/update/update/service/impl/refreshServiceImpl.java @@ -13,7 +13,9 @@ import org.springframework.stereotype.Service; @Service public class refreshServiceImpl implements refreshService { - freshServiceImpl ser=new freshServiceImpl(); + @Autowired + freshServiceImpl ser; + //version1大返回一个正数,小返回一个负数,相等返回0 public static int compareVersion(String version1, String version2) throws Exception { if (version1 == null || version2 == null) { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index ba94a82..62be68d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,7 +1,8 @@ spring.datasource.url = jdbc:mysql://localhost:3306/emoji?useUnicode=true&characterEncoding=utf-8 spring.datasource.username = root spring.datasource.password = root -spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -mybatis.mapper-locations=com.update.update.dao.freshMapper - +# spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +# mybatis.mapper-locations=com.update.update.dao.freshMapper +mybatis.configuration.map-underscore-to-camel-case=true +spring.jackson.time-zone=GMT+8