整合nacos
This commit is contained in:
@@ -2,6 +2,7 @@ package com.atguigu.ssyx;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
|
||||
/**
|
||||
* ClassName: ServiceSysApplication
|
||||
@@ -11,6 +12,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
* @Create 2023/9/14 15:36
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@EnableDiscoveryClient
|
||||
public class ServiceSysApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ServiceSysApplication.class, args);
|
||||
|
@@ -3,3 +3,9 @@ spring:
|
||||
name: service-sys
|
||||
profiles:
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: localhost:8848
|
||||
username: nacos
|
||||
password: nacos
|
||||
|
Reference in New Issue
Block a user