diff --git a/pom.xml b/pom.xml
index f049195..ed8d7e8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,19 +5,19 @@
com.jg
jg-boot
-
+
4.0.0
jar
jg
-
+
JG管理系统
org.springframework.boot
spring-boot-starter-parent
2.5.15
-
+
@@ -110,6 +110,13 @@
runtime
+
+
+ com.huaweicloud.gaussdb
+ opengaussjdbc
+ 503.2.T35
+
+
com.github.pagehelper
@@ -250,26 +257,26 @@
-
+
-
- ${project.artifactId}
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
- true
-
-
-
+
+ ${project.artifactId}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+ true
+
+
+
src/main/resources
true
-
+
diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml
index 213be75..2e9ef9e 100644
--- a/src/main/resources/application-dev.yml
+++ b/src/main/resources/application-dev.yml
@@ -2,13 +2,16 @@
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
- driverClassName: com.mysql.cj.jdbc.Driver
+ driverClassName: com.huawei.opengauss.jdbc.Driver
druid:
# 主库数据源
master:
- url: jdbc:mysql://localhost:3306/jgwebsite?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
- username: root
- password: 123456
+# url: jdbc:mysql://localhost:3306/jgwebsite?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+# username: root
+# password: 123456
+ url: jdbc:opengauss://IP:端口/数据库?searchpath=模式
+ username: 用户名
+ password: 密码
# 从库数据源
slave:
# 从数据源开关/默认关闭
@@ -35,7 +38,7 @@ spring:
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
- validationQuery: SELECT 1 FROM DUAL
+ validationQuery: SELECT 1
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
diff --git a/src/main/resources/mybatis/monitor/SysLogininforMapper.xml b/src/main/resources/mybatis/monitor/SysLogininforMapper.xml
index e74d584..2db56b6 100644
--- a/src/main/resources/mybatis/monitor/SysLogininforMapper.xml
+++ b/src/main/resources/mybatis/monitor/SysLogininforMapper.xml
@@ -17,8 +17,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- insert into sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time)
- values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate())
+ insert into sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg)
+ values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg})