Skip to content

Commit

Permalink
Fix Spring Boot Admin 401 error
Browse files Browse the repository at this point in the history
  • Loading branch information
tangllty committed Jun 3, 2024
1 parent 57c7ffc commit ce8a951
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Fix `UPDATE` statement get user name from `SecurityContextHolder` error
* Case order by format from lower hyphen to upper underscore
* Fix mybatis flex order query error
* Fix `Spring Boot Admin` 401 error

### Optimization

Expand Down
10 changes: 5 additions & 5 deletions tang-framework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@
</dependency>

<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId>
</dependency>

<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server</artifactId>
<artifactId>spring-boot-admin-starter-client</artifactId>
</dependency>

<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-client</artifactId>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity, Authen
.requestMatchers("/uploads/**").permitAll()
.requestMatchers("/captcha/**").permitAll()
.requestMatchers("/druid/**").permitAll()
.requestMatchers("/actuator/**", "/admin/applications").permitAll()
.requestMatchers("/actuator/**", "/admin", "/admin/applications", "/admin/instances/**", "/admin/variables.css", "/admin/sba-settings.js").permitAll()
.anyRequest().authenticated()
)
.headers(headers -> headers.frameOptions(options -> options.disable()))
Expand Down

0 comments on commit ce8a951

Please sign in to comment.