diff --git a/pom.xml b/pom.xml index 1d0a75dc3d180cce015fcf40dc775050aa705f45..f7c6c7be5d1a65c50af5337c642b042b4086068b 100644 --- a/pom.xml +++ b/pom.xml @@ -1,23 +1,18 @@ - - 4.0.0 - - com.schbrain.kp - schbrain-archetype - 1.0-SNAPSHOT - - schbrain-archetype - - - - UTF-8 - 11 - 11 - + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + com.schbrain.kp + schbrain-archetype + 1.0-SNAPSHOT + schbrain-archetype + + UTF-8 + 11 + 11 + - + \ No newline at end of file diff --git a/src/main/resources/archetype-resources/__appName__-api-impl/pom.xml b/src/main/resources/archetype-resources/__appName__-api-impl/pom.xml index a1187542517073fe6da61f6eb81aa872ff39ca85..2724787b5309988da80e596585266005265661a8 100644 --- a/src/main/resources/archetype-resources/__appName__-api-impl/pom.xml +++ b/src/main/resources/archetype-resources/__appName__-api-impl/pom.xml @@ -1,5 +1,8 @@ - + + 4.0.0 @@ -21,4 +24,4 @@ - + \ No newline at end of file diff --git a/src/main/resources/archetype-resources/__appName__-api/pom.xml b/src/main/resources/archetype-resources/__appName__-api/pom.xml index 9e73e09173c7c8d823dae1d088addddb4625bdde..896bd52795b32f92b660b20192b311c13bc4ae26 100644 --- a/src/main/resources/archetype-resources/__appName__-api/pom.xml +++ b/src/main/resources/archetype-resources/__appName__-api/pom.xml @@ -1,5 +1,8 @@ - + + 4.0.0 @@ -11,10 +14,18 @@ ${appName}-api + com.schbrain.kp ${appName}-common + + + org.springframework.cloud + spring-cloud-starter-openfeign + provided + + - + \ No newline at end of file diff --git a/src/main/resources/archetype-resources/__appName__-common/pom.xml b/src/main/resources/archetype-resources/__appName__-common/pom.xml index 39064f398a2adeb6534da01bdfc8194e76fe2521..c82b89d64dcadc469eced794b1fc4e96354d4a0d 100644 --- a/src/main/resources/archetype-resources/__appName__-common/pom.xml +++ b/src/main/resources/archetype-resources/__appName__-common/pom.xml @@ -1,5 +1,8 @@ - + + 4.0.0 @@ -17,4 +20,4 @@ - + \ No newline at end of file diff --git a/src/main/resources/archetype-resources/__appName__-dao/pom.xml b/src/main/resources/archetype-resources/__appName__-dao/pom.xml index f78afbdb2840b3554512f9905f3611ad5b50fb61..ee2eef3af2f8c5cf302cb3b6ba92a21abc8b7c73 100644 --- a/src/main/resources/archetype-resources/__appName__-dao/pom.xml +++ b/src/main/resources/archetype-resources/__appName__-dao/pom.xml @@ -1,5 +1,8 @@ - + + 4.0.0 @@ -25,10 +28,6 @@ mybatis-spring-boot-starter - - com.alibaba - druid-spring-boot-starter - - + \ No newline at end of file diff --git a/src/main/resources/archetype-resources/__appName__-dao/src/main/resources/mapper/.gitkeep b/src/main/resources/archetype-resources/__appName__-dao/src/main/resources/mapper/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/main/resources/archetype-resources/__appName__-service/pom.xml b/src/main/resources/archetype-resources/__appName__-service/pom.xml index 38bc690b513eaeea63f15aad7469d08fcb5f1e40..30f4e7ce141b35f655d0ee1ed430ce73763882d8 100644 --- a/src/main/resources/archetype-resources/__appName__-service/pom.xml +++ b/src/main/resources/archetype-resources/__appName__-service/pom.xml @@ -1,5 +1,5 @@ - + 4.0.0 @@ -36,6 +36,11 @@ spring-cloud-starter-netflix-eureka-client + + org.springframework.cloud + spring-cloud-starter-openfeign + + - + \ No newline at end of file diff --git a/src/main/resources/archetype-resources/__appName__-web/pom.xml b/src/main/resources/archetype-resources/__appName__-web/pom.xml index 8db85a0d8e68a94249de5f5549b56f5f1b164e7e..d4519b90104afa0bbbc5d1e0e67a39e4663127fc 100644 --- a/src/main/resources/archetype-resources/__appName__-web/pom.xml +++ b/src/main/resources/archetype-resources/__appName__-web/pom.xml @@ -1,5 +1,5 @@ - + 4.0.0 @@ -50,4 +50,4 @@ - + \ No newline at end of file diff --git a/src/main/resources/archetype-resources/__appName__-web/src/main/java/Application.java b/src/main/resources/archetype-resources/__appName__-web/src/main/java/Application.java index faba0a663f67687b31abd7e3ad2a8f77569fd5b0..ef3afba3130cf8f77137f8a4fb92b5e0e9192fbb 100644 --- a/src/main/resources/archetype-resources/__appName__-web/src/main/java/Application.java +++ b/src/main/resources/archetype-resources/__appName__-web/src/main/java/Application.java @@ -1,4 +1,4 @@ -package ${package}; +package $ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -10,4 +10,4 @@ public class Application { SpringApplication.run(Application.class, args); } -} +} \ No newline at end of file diff --git a/src/main/resources/archetype-resources/__appName__-web/src/main/resources/application.yaml b/src/main/resources/archetype-resources/__appName__-web/src/main/resources/application.yaml index d777b4c5459b137dc76b2df096415957e1af7636..7d70f27047356214f082346f7cead77e86833fc0 100644 --- a/src/main/resources/archetype-resources/__appName__-web/src/main/resources/application.yaml +++ b/src/main/resources/archetype-resources/__appName__-web/src/main/resources/application.yaml @@ -5,16 +5,4 @@ spring: active: dev apollo: bootstrap: - namespaces: kp.common.spring.jdbc -eureka: - client: - service-url: - defaultZone: http://kp-register-center:18080/eureka/ - instance: - prefer-ip-address: true - lease-renewal-interval-in-seconds: 5 - lease-expiration-duration-in-seconds: 15 -schbrain: - logging: - file: - enable-json-log-write-to-logstash: true \ No newline at end of file + namespaces: application,kp.common.spring.jdbc,kp.common.eureka \ No newline at end of file