接入prometheus
This commit is contained in:
parent
7b0a7e8aaa
commit
8706a89784
4
pom.xml
4
pom.xml
@ -168,6 +168,10 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.micrometer</groupId>
|
||||
<artifactId>micrometer-registry-prometheus</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<!-- Starter for using Spring Security -->
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
||||
@ -80,6 +80,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
|
||||
http.authorizeRequests()
|
||||
//请求路径允许访问
|
||||
.antMatchers("/actuator/**").permitAll()
|
||||
.antMatchers("/exam/courseRecord/page").permitAll()
|
||||
.antMatchers("/xmgl/carInfo/validEnterpriseStatus").permitAll()
|
||||
.antMatchers("/xmgl/enterpriseType/list").permitAll()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user