鉴权
This commit is contained in:
@@ -45,7 +45,7 @@ public class SecurityConfig {
|
||||
.addFilterBefore(jwtAuthFilter, UsernamePasswordAuthenticationFilter.class)
|
||||
.authenticationProvider(provider)
|
||||
.authorizeHttpRequests(auth -> auth
|
||||
.requestMatchers("/auth/login", "/auth/captcha").permitAll()
|
||||
.requestMatchers("/auth/login", "/auth/captcha","wx/message").permitAll()
|
||||
.anyRequest().authenticated());
|
||||
|
||||
return http.build();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
server:
|
||||
port: 8080
|
||||
port: 6666
|
||||
spring:
|
||||
main:
|
||||
allow-circular-references: true
|
||||
|
||||
Reference in New Issue
Block a user