docs 补充项目注释
This commit is contained in:
+5
@@ -13,6 +13,11 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@SpringBootApplication
|
||||
public class MonitorAdminApplication {
|
||||
|
||||
/**
|
||||
* Admin 监控服务启动入口。
|
||||
*
|
||||
* @param args 启动参数
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MonitorAdminApplication.class, args);
|
||||
System.out.println("Admin 监控启动成功");
|
||||
|
||||
+8
@@ -21,8 +21,16 @@ import org.springframework.security.web.servlet.util.matcher.PathPatternRequestM
|
||||
@Configuration
|
||||
public class SecurityConfig {
|
||||
|
||||
/**
|
||||
* 监控后台上下文路径。
|
||||
*/
|
||||
private final String adminContextPath;
|
||||
|
||||
/**
|
||||
* 创建监控后台安全配置。
|
||||
*
|
||||
* @param adminServerProperties 监控后台配置
|
||||
*/
|
||||
public SecurityConfig(AdminServerProperties adminServerProperties) {
|
||||
this.adminContextPath = adminServerProperties.getContextPath();
|
||||
}
|
||||
|
||||
+5
@@ -20,6 +20,11 @@ import static de.codecentric.boot.admin.server.domain.values.StatusInfo.*;
|
||||
@Component
|
||||
public class CustomNotifier extends AbstractEventNotifier {
|
||||
|
||||
/**
|
||||
* 初始化自定义事件通知处理器。
|
||||
*
|
||||
* @param repository 实例仓库
|
||||
*/
|
||||
protected CustomNotifier(InstanceRepository repository) {
|
||||
super(repository);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user