diff --git a/pom.xml b/pom.xml index c63fed58314d590f4469c597961c131447774d59..4304783ae31a367440d6dc381653458c4dcf6a03 100644 --- a/pom.xml +++ b/pom.xml @@ -47,17 +47,29 @@ spring-boot-starter-tomcat provided - + + + + + + + + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 1.3.2 + + + org.mybatis.generator + mybatis-generator-maven-plugin + 1.3.7 + + + org.postgresql + postgresql + 42.2.18 + @@ -71,6 +83,7 @@ spring-boot-devtools runtime + + + + + + + - + + + @@ -19,6 +17,7 @@ + @@ -26,12 +25,12 @@ + + - - @@ -39,22 +38,24 @@ - - + - - + + + + - - + + + + - -
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ \ No newline at end of file diff --git a/src/main/resources/jdbc.properties b/src/main/resources/jdbc.properties index e791d854156f71c70303d78e504df503673e3aca..ee4bd87854edacba22baa855bdc42d5152c1a65b 100644 --- a/src/main/resources/jdbc.properties +++ b/src/main/resources/jdbc.properties @@ -1,8 +1,13 @@ -spring.datasource.url=jdbc:mysql://127.0.0.1:3306/dhmanage?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false -#spring.datasource.driverClassName=com.mysql.jdbc.Driver -spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver -spring.datasource.username=root -spring.datasource.password=123 +#spring.datasource.url=jdbc:mysql://127.0.0.1:3306/dhmanage?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false +##spring.datasource.driverClassName=com.mysql.jdbc.Driver +#spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver +#spring.datasource.username=root +#spring.datasource.password=123 + +spring.datasource.url=jdbc:postgresql://192.168.1.60:5432/postgres +spring.datasource.username=postgres +spring.datasource.password=123456 +spring.datasource.driver-class-name=org.postgresql.Driver #Mybatis扫描 mybatis.mapper-locations=classpath*:com/**/mapper/**.xml diff --git a/src/main/resources/mapper/DataSubmitMapper.xml b/src/main/resources/mapper/DataSubmitMapper.xml index 4257df8983c127831be3dcef7cd8a41e5b50c790..d7eeae7d4366da948bd6a30b2c01408563c11852 100644 --- a/src/main/resources/mapper/DataSubmitMapper.xml +++ b/src/main/resources/mapper/DataSubmitMapper.xml @@ -6,7 +6,7 @@ WARNING - @mbg.generated --> - + diff --git a/src/main/resources/mapper/VfileMenuMapper.xml b/src/main/resources/mapper/VfileMenuMapper.xml index 344cbc5888e3a02aa22314465a0675c2b54d7be5..3a6f3d6ef8915a86cf030ae940726b3366c1043e 100644 --- a/src/main/resources/mapper/VfileMenuMapper.xml +++ b/src/main/resources/mapper/VfileMenuMapper.xml @@ -85,9 +85,10 @@ and file_security = #{vfileMenu.fileSecurity} - limit #{offset}, #{limit} - + LIMIT #{limit} OFFSET #{offset} + +