From d12ee233e8a54e11074b0d09bfd36418980ff42b Mon Sep 17 00:00:00 2001 From: ms-dev Date: Sat, 26 Jan 2019 18:13:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/Dockerfile | 5 +++++ src/main/resources/application-pro.yml | 7 +++++++ src/main/resources/application-test.yml | 7 +++++++ 3 files changed, 19 insertions(+) create mode 100644 src/main/resources/Dockerfile create mode 100644 src/main/resources/application-pro.yml create mode 100644 src/main/resources/application-test.yml diff --git a/src/main/resources/Dockerfile b/src/main/resources/Dockerfile new file mode 100644 index 00000000..129c4dd5 --- /dev/null +++ b/src/main/resources/Dockerfile @@ -0,0 +1,5 @@ +FROM java +VOLUME /tmp +ADD docker-springboot-0.0.1-SNAPSHOT.jar app.jar +RUN bash -c 'touch /app.jar' ENV JAVA_OPTS="" +ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ] \ No newline at end of file diff --git a/src/main/resources/application-pro.yml b/src/main/resources/application-pro.yml new file mode 100644 index 00000000..8319ac8f --- /dev/null +++ b/src/main/resources/application-pro.yml @@ -0,0 +1,7 @@ +spring: + datasource: + url: jdbc:mysql://localhost:3306/db-mcms-open?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useSSL=false + username: root + password: root + filters: wall,mergeStat + type: com.alibaba.druid.pool.DruidDataSource \ No newline at end of file diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml new file mode 100644 index 00000000..2c3a9d64 --- /dev/null +++ b/src/main/resources/application-test.yml @@ -0,0 +1,7 @@ +spring: + datasource: + url: jdbc:mysql://192.168.1.18:3306/mcms-4.7.0?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useSSL=false + username: root + password: root + filters: wall,mergeStat + type: com.alibaba.druid.pool.DruidDataSource \ No newline at end of file From 4466019ddf35e8e09eb9f25d06421bb2df977022 Mon Sep 17 00:00:00 2001 From: ms-dev Date: Sat, 26 Jan 2019 18:14:49 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 99 ++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 80 insertions(+), 19 deletions(-) diff --git a/pom.xml b/pom.xml index 01d87374..f9654212 100644 --- a/pom.xml +++ b/pom.xml @@ -6,9 +6,9 @@ net.mingsoft mcms - 0.0.1-SNAPSHOT - mcms1 - war + 4.7.0-SNAPSHOT + ms-mcms + jar 1.8 @@ -49,12 +49,6 @@ classes provided - - net.mingsoft - ms-basic - 1.0.8.1-SNAPSHOT - war - net.mingsoft ms-mdiy @@ -62,12 +56,6 @@ classes provided - - net.mingsoft - ms-mdiy - 1.0.7-SNAPSHOT - war - net.mingsoft ms-mpeople @@ -75,16 +63,89 @@ classes provided + + - net.mingsoft - ms-mpeople - 1.0.7-SNAPSHOT - war + io.springfox + springfox-swagger2 + 2.9.2 + + + org.springframework + spring-core + + + org.springframework + spring-beans + + + org.springframework + spring-context + + + org.springframework + spring-context-support + + + org.springframework + spring-aop + + + org.springframework + spring-tx + + + org.springframework + spring-orm + + + org.springframework + spring-jdbc + + + org.springframework + spring-web + + + org.springframework + spring-webmvc + + + org.springframework + spring-oxm + + + + + io.springfox + springfox-swagger-ui + 2.9.2 ms-mcms + org.apache.maven.plugins maven-compiler-plugin