sentinel

编程

application.yml

spring:

application:

name: sd

cloud:

sentinel:

transport:

dashboard: 192.168.3.114:8858

eager: true

application.java

package com;

import org.springframework.boot.SpringApplication;

import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RestController;

@RestController

@SpringBootApplication

public class TtApplication {

@GetMapping(value = "/hello")

public String hello() {

return "Hello Sentinel";

}

public static void main(String[] args) {

SpringApplication.run(TtApplication.class, args);

}

}

 

 

以上是 sentinel 的全部内容, 来源链接: utcz.com/z/514239.html

回到顶部