最后
给大家送一个小福利
附高清脑图,高清知识点讲解教程,以及一些面试真题及答案解析。送给需要的提升技术、准备面试跳槽、自身职业规划迷茫的朋友们。
de.codecentric
spring-boot-admin-server
1.5.6
de.codecentric
spring-boot-admin-server-ui
1.5.6
复制代码
增加了对eureka的支持
server:
port: 8000
spring:
application:
name: admin-server
boot:
admin:
username: amdin ----> admin server的用户名
password: amdin ----> admin server 密码
eureka:
instance:
leaseRenewalIntervalInSeconds: 10
client:
registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
management.security.enabled: false
复制代码
启动类
@Configuration
@EnableAutoConfiguration
@EnableDiscoveryClient
@EnableAdminServer
public class ServerApplication {
public static void main(String[] args) {
SpringApplication.run(AdminServerApplication.class, args);
}
}
复制代码
上述步骤完成之后,启动Server端。
- Client端
项目依赖
org.springframework.cloud
spring-cloud-starter-eureka
de.codecentric
spring-boot-admin-starter-client
1.5.6
复制代码
配置文件
server:
port: 9000
spring:
application:
name: project_name
boot:
admin:
url: http://127.0.0.1:8000 ---->http server注册服务地址
username: admin
password: admin
logging: file: /xxx.log ---->必须配置,否则无法在admin server中进行查看实时log日志状况
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
management:
security:
enabled: false ---->必须设置,否则查看健康detail详情会弹出认证提示框,导致查看失败
复制代码
admin client 启动类
@SpringBootApplication
@EnableDiscoveryClient
public class ProducerApplication {
public static void main(String[] args) {
SpringApplication.run(ProducerApplication.class, args);
}
最后
小编利用空余时间整理了一份《MySQL性能调优手册》,初衷也很简单,就是希望能够帮助到大家,减轻大家的负担和节省时间。
关于这个,给大家看一份学习大纲(PDF)文件,每一个分支里面会有详细的介绍。
这里都是以图片形式展示介绍,如要下载原文件以及更多的性能调优笔记(MySQL+Tomcat+JVM)!
(MySQL+Tomcat+JVM)!**