调整 pom 结构

This commit is contained in:
GYJ
2025-02-08 10:01:07 +08:00
parent 0dcb8dcdd7
commit f9e8cc1f0d
16 changed files with 131 additions and 33 deletions

View File

@@ -18,4 +18,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
<dependencies>
</dependencies>
</project>

View File

@@ -2,11 +2,15 @@ package com.czg;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* @author ww
*/
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class SystemApplication {
public static void main(String[] args) {

View File

@@ -0,0 +1,17 @@
spring:
cloud:
nacos:
config:
bootstrap:
enabled: true
data-id: system-server
group: DEFAULT_GROUP
auto-refresh: true
server-addr: 101.37.12.135:8848
namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
file-extension: yaml
discovery:
server-addr: 101.37.12.135:8848
namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca

View File

@@ -4,6 +4,8 @@ server:
spring:
application:
name: system-server
profiles:
active: dev
logging:
config: classpath:logback.xml
config: classpath:logback.xml