作者 crossoverJie

:sparkles: Introducing new features.add sba

@@ -30,6 +30,7 @@ @@ -30,6 +30,7 @@
30 <module>netty-action-heartbeat</module> 30 <module>netty-action-heartbeat</module>
31 <module>netty-action-heartbeat-client</module> 31 <module>netty-action-heartbeat-client</module>
32 <module>netty-action-common</module> 32 <module>netty-action-common</module>
  33 + <module>springboot-admin</module>
33 </modules> 34 </modules>
34 35
35 36
  1 +# 监控 admin
  2 +
  3 +[SpringBoot admin](https://github.com/codecentric/spring-boot-admin)
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4 + <modelVersion>4.0.0</modelVersion>
  5 +
  6 + <parent>
  7 + <groupId>com.crossoverjie.netty</groupId>
  8 + <artifactId>netty-action</artifactId>
  9 + <version>1.0.0-SNAPSHOT</version>
  10 + </parent>
  11 +
  12 + <artifactId>springboot-admin</artifactId>
  13 + <packaging>jar</packaging>
  14 +
  15 + <name>admin</name>
  16 + <description>springBoot admin</description>
  17 +
  18 +
  19 + <properties>
  20 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21 + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  22 + <java.version>1.8</java.version>
  23 + </properties>
  24 +
  25 + <dependencies>
  26 + <dependency>
  27 + <groupId>org.springframework.boot</groupId>
  28 + <artifactId>spring-boot-starter</artifactId>
  29 + </dependency>
  30 +
  31 + <dependency>
  32 + <groupId>org.springframework.boot</groupId>
  33 + <artifactId>spring-boot-starter-test</artifactId>
  34 + <scope>test</scope>
  35 + </dependency>
  36 +
  37 + <dependency>
  38 + <groupId>org.springframework.boot</groupId>
  39 + <artifactId>spring-boot-starter-mail</artifactId>
  40 + </dependency>
  41 +
  42 + <dependency>
  43 + <groupId>de.codecentric</groupId>
  44 + <artifactId>spring-boot-admin-starter-server</artifactId>
  45 + <version>1.5.7</version>
  46 + </dependency>
  47 +
  48 + <dependency>
  49 + <groupId>de.codecentric</groupId>
  50 + <artifactId>spring-boot-admin-server-ui</artifactId>
  51 + <version>1.5.6</version>
  52 + </dependency>
  53 + </dependencies>
  54 +
  55 + <build>
  56 + <plugins>
  57 + <plugin>
  58 + <groupId>org.springframework.boot</groupId>
  59 + <artifactId>spring-boot-maven-plugin</artifactId>
  60 + </plugin>
  61 + </plugins>
  62 + </build>
  63 +
  64 +
  65 +</project>
  1 +package com.ai.obc.springboot.admin;
  2 +
  3 +import de.codecentric.boot.admin.config.EnableAdminServer;
  4 +import org.springframework.boot.SpringApplication;
  5 +import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
  6 +import org.springframework.boot.autoconfigure.SpringBootApplication;
  7 +import org.springframework.context.annotation.Configuration;
  8 +
  9 +@SpringBootApplication
  10 +@Configuration
  11 +@EnableAutoConfiguration
  12 +@EnableAdminServer
  13 +public class AdminApplication {
  14 +
  15 + public static void main(String[] args) {
  16 + SpringApplication.run(AdminApplication.class, args);
  17 + }
  18 +}
  1 +
  2 +spring.application.name=spring-boot-admin
  3 +server.port = 8888
  1 +package com.ai.obc.springboot.admin;
  2 +
  3 +import org.junit.Test;
  4 +import org.junit.runner.RunWith;
  5 +import org.springframework.boot.test.context.SpringBootTest;
  6 +import org.springframework.test.context.junit4.SpringRunner;
  7 +
  8 +@RunWith(SpringRunner.class)
  9 +@SpringBootTest
  10 +public class AdminApplicationTests {
  11 +
  12 + @Test
  13 + public void contextLoads() {
  14 + }
  15 +
  16 +}