From a4c923ac5ed2004c1e97c6affbb91ad077955f36 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Mon, 31 May 2021 17:52:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/adc/da/AdcDaApplication.java | 2 + .../main/resources/application-dev.properties | 8 +-- .../src/main/resources/cache/ehcache.xml | 66 +++++++++++++++++++ .../mybatis/mapper/sys/DictionaryEOMapper.xml | 2 +- 4 files changed, 73 insertions(+), 5 deletions(-) create mode 100644 adc-da-main/src/main/resources/cache/ehcache.xml diff --git a/adc-da-main/src/main/java/com/adc/da/AdcDaApplication.java b/adc-da-main/src/main/java/com/adc/da/AdcDaApplication.java index 5525d6cc..8353b814 100644 --- a/adc-da-main/src/main/java/com/adc/da/AdcDaApplication.java +++ b/adc-da-main/src/main/java/com/adc/da/AdcDaApplication.java @@ -1,5 +1,6 @@ package com.adc.da; +import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration; @@ -7,6 +8,7 @@ import org.springframework.boot.web.servlet.ServletComponentScan; @ServletComponentScan @SpringBootApplication(exclude = SecurityAutoConfiguration.class) +@MapperScan(value = {"com.adc.da.file.store"}) public class AdcDaApplication { public static void main(String[] args) { diff --git a/adc-da-main/src/main/resources/application-dev.properties b/adc-da-main/src/main/resources/application-dev.properties index 1b77a4b0..2b4ee553 100644 --- a/adc-da-main/src/main/resources/application-dev.properties +++ b/adc-da-main/src/main/resources/application-dev.properties @@ -2,10 +2,10 @@ #============================================= # 数据库配置 #============================================= -spring.datasource.driverClassName = oracle.jdbc.OracleDriver -spring.datasource.url = jdbc:oracle:thin:@//192.168.10.140:1521/orcl -spring.datasource.username = LAWSDB -spring.datasource.password = 1q2w3e4r +spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver +spring.datasource.url = jdbc:mysql://127.0.0.1:3306/foton_slrs_test?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&useSSL=false +spring.datasource.username = root +spring.datasource.password = root #============================================== # 应用设置 diff --git a/adc-da-main/src/main/resources/cache/ehcache.xml b/adc-da-main/src/main/resources/cache/ehcache.xml new file mode 100644 index 00000000..b580e227 --- /dev/null +++ b/adc-da-main/src/main/resources/cache/ehcache.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + diff --git a/adc-da-sys/src/main/resources/mybatis/mapper/sys/DictionaryEOMapper.xml b/adc-da-sys/src/main/resources/mybatis/mapper/sys/DictionaryEOMapper.xml index aea6c3f5..898dc60e 100644 --- a/adc-da-sys/src/main/resources/mybatis/mapper/sys/DictionaryEOMapper.xml +++ b/adc-da-sys/src/main/resources/mybatis/mapper/sys/DictionaryEOMapper.xml @@ -24,7 +24,7 @@ - +