diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ad50dd4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM hub.c.163.com/wuxukun/maven-aliyun:3-jdk-8 +ADD ./target/spring-boot.jar /app.jar +VOLUME /tmp +EXPOSE 8080 +ENTRYPOINT ["java","-jar","/app.jar"] \ No newline at end of file diff --git a/pom.xml b/pom.xml index 2c23fb7..e5a960a 100644 --- a/pom.xml +++ b/pom.xml @@ -1,108 +1,107 @@ - 4.0.0 - - cn.merryyou - logback - 0.0.1-SNAPSHOT - jar - - logback - Demo project for Spring Boot - - - org.springframework.boot - spring-boot-starter-parent - 1.5.3.RELEASE - - - - - UTF-8 - UTF-8 - 1.8 - - - - - org.springframework.boot - spring-boot-starter-web - - - - org.springframework.boot - spring-boot-starter-test - test - - - - org.springframework.boot - spring-boot-starter-data-jpa - - - - org.springframework.boot - spring-boot-starter-aop - - - - io.springfox - springfox-swagger2 - 2.7.0 - - - - io.springfox - springfox-swagger-ui - 2.7.0 - - - - mysql - mysql-connector-java - - - - org.projectlombok - lombok - 1.16.16 - - - - commons-beanutils - commons-beanutils - 1.8.3 - test - - - - com.google.code.gson - gson - 2.8.2 - - - - org.apache.commons - commons-lang3 - 3.6 - - - - org.springframework.boot - spring-boot-starter-data-redis - - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - - + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + + cn.merryyou + logback + 0.0.1-SNAPSHOT + jar + + logback + Demo project for Spring Boot + + + org.springframework.boot + spring-boot-starter-parent + 1.5.3.RELEASE + + + + + UTF-8 + UTF-8 + 1.8 + + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.springframework.boot + spring-boot-starter-data-jpa + + + + org.springframework.boot + spring-boot-starter-aop + + + + io.springfox + springfox-swagger2 + 2.7.0 + + + + io.springfox + springfox-swagger-ui + 2.7.0 + + + + mysql + mysql-connector-java + + + + org.projectlombok + lombok + 1.16.16 + + + + commons-beanutils + commons-beanutils + 1.8.3 + test + + + + com.google.code.gson + gson + 2.8.2 + + + + org.apache.commons + commons-lang3 + 3.6 + + + + org.springframework.boot + spring-boot-starter-data-redis + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + spring-boot + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index c04ffb2..c7ef1f9 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -3,10 +3,13 @@ spring: active: dev datasource: driver-class-name: com.mysql.jdbc.Driver - url: jdbc:mysql://127.0.0.1:3306/dbperson + url: jdbc:mysql://10.5.17.67:3306/dbperson username: root password: admin jpa: hibernate: ddl-auto: update - show-sql: true \ No newline at end of file + show-sql: true +weixin: + appid: wxb962cbf908779e5e + appsecret: 01d65e5f44d6e2d777996dc60e94ea58