Explorar o código

更改数据库为sqlite

rsbi %!s(int64=4) %!d(string=hai) anos
pai
achega
5a95b2c6b2

BIN=BIN
.DS_Store


+ 6 - 0
pom.xml

@@ -115,6 +115,11 @@
             <version>42.2.5</version>
         </dependency>
         <dependency>
+            <groupId>org.xerial</groupId>
+            <artifactId>sqlite-jdbc</artifactId>
+            <version>3.28.0</version>
+        </dependency>
+        <dependency>
             <groupId>javax.servlet.jsp</groupId>
             <artifactId>jsp-api</artifactId>
             <version>2.2</version>
@@ -161,6 +166,7 @@
                     <include>**/*.yml</include>
                     <include>**/*.properties</include>
                     <include>**/*.xml</include>
+                    <include>**/*.sqlite3</include>
                 </includes>
                 <filtering>false</filtering>
             </resource>

+ 10 - 4
src/main/resources/application.yml

@@ -1,10 +1,16 @@
 #数据库连接 mysql
+#spring:
+#  datasource:
+#    url: jdbc:mysql://localhost:3306/rs_report?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&serverTimezone=GMT%2B8
+#    username: root
+#    password: 12345678
+#    driver-class-name: com.mysql.cj.jdbc.Driver
 spring:
   datasource:
-    url: jdbc:mysql://localhost:3306/rs_report?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&serverTimezone=GMT%2B8
-    username: root
-    password: 12345678
-    driver-class-name: com.mysql.cj.jdbc.Driver
+    url: jdbc:sqlite::resource:rsreport.sqlite3
+    username:
+    password:
+    driver-class-name: org.sqlite.JDBC
 mybatis:
   #mapper配置文件
   mapper-locations: classpath:mybatis/*.xml

BIN=BIN
src/main/resources/rsreport.sqlite3


+ 1 - 1
src/main/webapp/WEB-INF/ext2/ext-config/ext-config.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ext-config>
 	<constant name="devMode" value="true" />
-	<constant name="dbName" value="mysql" />
+	<constant name="dbName" value="sqlite" />
 	<!-- 关闭在多维分析中显示节日 -->
 	<constant name="closeFestival" value="true" />