Compare commits

...

No commits in common. "trunk" and "main" have entirely different histories.
trunk ... main

9 changed files with 55 additions and 12 deletions

View File

@ -3,9 +3,11 @@ plugins {
id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java' id 'java'
} }
// Spring Cloud : 2020.0.x aka Ilford
// Spring Boot : 2.4.x, 2.5.x (Starting with 2020.0.3)
group = 'com.kakaoent.cpdd' group = 'com.kakaoent.adp.trevi.configserver'
version = '0.0.1-SNAPSHOT' version = '1.0.0'
sourceCompatibility = '11' sourceCompatibility = '11'
repositories { repositories {

View File

@ -1,4 +1,4 @@
package com.kakaoent.cpdd.config.server; package com.kakaoent.adp.trevi.configserver;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
@ -6,10 +6,10 @@ import org.springframework.cloud.config.server.EnableConfigServer;
@EnableConfigServer @EnableConfigServer
@SpringBootApplication @SpringBootApplication
public class ConfigServerApplication { public class TreviCloudConfigServerApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(ConfigServerApplication.class, args); SpringApplication.run(TreviCloudConfigServerApplication.class, args);
} }
} }

View File

@ -0,0 +1,7 @@
spring:
config:
activate:
on-profile: dev
logging.level:
org.springframework.cloud.config: DEBUG

View File

@ -0,0 +1,7 @@
spring:
config:
activate:
on-profile: local
logging.level:
org.springframework.cloud.config: TRACE

View File

@ -0,0 +1,7 @@
spring:
config:
activate:
on-profile: prod
logging.level:
org.springframework.cloud.config: INFO

View File

@ -0,0 +1,7 @@
spring:
config:
activate:
on-profile: qa
logging.level:
org.springframework.cloud.config: INFO

View File

@ -0,0 +1,7 @@
spring:
config:
activate:
on-profile: stage
logging.level:
org.springframework.cloud.config: INFO

View File

@ -1,13 +1,19 @@
server: server:
port: 11080 port: 11080
spring: spring:
profiles:
active: local
cloud: cloud:
config: config:
server: server:
git: git:
uri: https://git.myoa-universe.com/OutworldDestroyer/config-server-pilot-config.git uri: git@github.com:kakaoent/adp-config-server-config.git
default-label: trunk default-label: main
search-paths: '{application}/{profile},{application}' search-paths: '{application}/{profile},{application}'
# private-key: ${parsedPrivateKey}
logging.level: # private-key-raw: ${CONFIG_SERVER_PRIVATE_KEY}
org.springframework.cloud.config: TRACE ignore-local-ssh-settings: true
# host-key-algorithm: ssh-rsa
private-key: |
-----BEGIN EC PRIVATE KEY-----
-----END EC PRIVATE KEY-----

View File

@ -1,10 +1,10 @@
package com.kakaoent.cpdd.config.server; package com.kakaoent.adp.trevi.configserver;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest @SpringBootTest
class ConfigServerApplicationTests { class TreviCloudConfigServerApplicationTests {
@Test @Test
void contextLoads() { void contextLoads() {