zoukankan      html  css  js  c++  java
  • Spring Boot Admin

    管理服务器端

    pom.xml

     1      <dependency>
     2             <groupId>de.codecentric</groupId>
     3             <artifactId>spring-boot-admin-starter-server</artifactId>
     4             <version>2.0.1</version>
     5         </dependency>
     6         <dependency>
     7             <groupId>de.codecentric</groupId>
     8             <artifactId>spring-boot-admin-server-ui</artifactId>
     9             <version>2.0.1</version>
    10         </dependency>
    11         <dependency>
    12             <groupId>org.springframework.boot</groupId>
    13             <artifactId>spring-boot-starter-mail</artifactId>
    14         </dependency>

    application.properties

    server.port=1125
    spring.application.name= admin2.0
    DemoApplication
    @Configuration
    @EnableAutoConfiguration
    @EnableAdminServer
    //@EnableWebSecurity
    public class DemoApplication {
    
        public static void main(String[] args) {
            SpringApplication.run(DemoApplication.class, args);
        }
    }
    

    Admin Client端

    <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter</artifactId>
            </dependency>
    
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-test</artifactId>
                <scope>test</scope>
            </dependency>
    
            <dependency>
                <groupId>de.codecentric</groupId>
                <artifactId>spring-boot-admin-starter-client</artifactId>
                <version>1.5.6</version>
            </dependency>
    
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-actuator</artifactId>
            </dependency>
    
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-web</artifactId>
            </dependency>
    

      application.properties

    server.port=1127
    spring.application.name=qianjiajie
    spring.boot.admin.auto-registration = true
    spring.boot.admin.url = http://localhost:1125
    spring.boot.admin.api-path = urlllll
    management.security.enabled = false
    

     

      

  • 相关阅读:
    Google Accounts,OpenID,OAuth
    Namespaces(命名空间)
    <Araxis Merge>Windows平台下的Merge概览
    <Araxis Merge>快速一览文件的比较与合并
    <Araxis Merge>保存文件
    <Stackoverflow> 声望和节制
    <Stackoverflow> 如何提问
    收集一些好用的搜索引擎
    一个简单的scrapy爬虫抓取豆瓣刘亦菲的图片地址
    应用python编写简单新浪微博应用(一)
  • 原文地址:https://www.cnblogs.com/gjack/p/10614851.html
Copyright © 2011-2022 走看看