接入prometheus

This commit is contained in:
guoshengxiong 2024-08-06 09:58:56 +08:00
parent 7b0a7e8aaa
commit 8706a89784
2 changed files with 5 additions and 0 deletions

View File

@ -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>

View File

@ -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()