@@ -0,0 +1,15 @@
|
||||
package dev.mars3142.fhq.eureka_service;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
|
||||
|
||||
@EnableEurekaServer
|
||||
@SpringBootApplication
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
|
||||
}
|
29
src/main/resources/application.yaml
Normal file
29
src/main/resources/application.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
info:
|
||||
application:
|
||||
name: ${spring.application.name}
|
||||
version: '@project.version@'
|
||||
spring-cloud-version: '@spring-cloud.version@'
|
||||
spring-boot-version: '@project.parent.version@'
|
||||
|
||||
logging:
|
||||
level:
|
||||
com.netflix.eureka: OFF
|
||||
com.netflix.discovery: OFF
|
||||
|
||||
server:
|
||||
port: ${PORT:8761}
|
||||
shutdown: graceful
|
||||
error:
|
||||
include-message: on_param
|
||||
include-stacktrace: on_param
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: eureka-service
|
||||
|
||||
eureka:
|
||||
client:
|
||||
registerWithEureka: true
|
||||
fetchRegistry: false
|
||||
environment: production
|
||||
datacenter: hel1-dc2
|
8
src/main/resources/banner.txt
Normal file
8
src/main/resources/banner.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
,------. ,--.
|
||||
| .---',--.,--.,--.--. ,---. | |,-. ,--,--.
|
||||
| `--, | || || .--'| .-. :| /' ,-. |
|
||||
| `---.' '' '| | \ --.| \ \\ '-' |
|
||||
`------' `----' `--' `----'`--'`--'`--`--'
|
||||
|
||||
${application.title} ${application.version}
|
||||
Powered by Spring Boot ${spring-boot.version}
|
@@ -0,0 +1,13 @@
|
||||
package dev.mars3142.fhq.eureka_service;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class ApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user