-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spring-boot-admin 2.6.6 -> 2.7.1 [skip ci]
- Loading branch information
1 parent
de3e26a
commit 42d0abb
Showing
7 changed files
with
24 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
package com.jmsoftware.maf.authcenter.user.payload | ||
|
||
import com.jmsoftware.maf.common.bean.PaginationBase | ||
import java.time.LocalDateTime | ||
import javax.validation.constraints.NotEmpty | ||
import javax.validation.constraints.NotNull | ||
|
||
/** | ||
* # GetUserPageListPayload | ||
|
@@ -12,11 +9,6 @@ import javax.validation.constraints.NotNull | |
* | ||
* @author Johnny Miller (锺俊), e-mail: [email protected], date: 4/12/22 12:46 PM | ||
*/ | ||
data class GetUserPageListPayload( | ||
@field:NotEmpty | ||
val username: String, | ||
@field:NotNull | ||
val startTime: LocalDateTime, | ||
@field:NotNull | ||
val endTime: LocalDateTime | ||
) : PaginationBase() | ||
class GetUserPageListPayload : PaginationBase() { | ||
val username: String? = null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,10 @@ package com.jmsoftware.maf.springcloudstarter.configuration | |
|
||
import com.jmsoftware.maf.common.util.logger | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.security.authentication.AuthenticationManager | ||
import org.springframework.security.config.annotation.web.builders.HttpSecurity | ||
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity | ||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter | ||
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder | ||
import org.springframework.security.web.SecurityFilterChain | ||
import javax.annotation.PostConstruct | ||
|
||
/** | ||
|
@@ -17,7 +16,7 @@ import javax.annotation.PostConstruct | |
* @author Johnny Miller (锺俊), e-mail: [email protected], date: 4/18/22 9:20 PM | ||
*/ | ||
@EnableWebSecurity | ||
class WebSecurityConfiguration : WebSecurityConfigurerAdapter() { | ||
class WebSecurityConfiguration { | ||
companion object { | ||
private val log = logger() | ||
} | ||
|
@@ -27,14 +26,17 @@ class WebSecurityConfiguration : WebSecurityConfigurerAdapter() { | |
log.warn("Initial bean: `${WebSecurityConfiguration::class.java.simpleName}`") | ||
} | ||
|
||
public override fun authenticationManager(): AuthenticationManager { | ||
return super.authenticationManagerBean() | ||
} | ||
|
||
override fun configure(http: HttpSecurity) { | ||
// Disable Web Security. | ||
http.authorizeRequests().anyRequest().permitAll().and().csrf().disable().cors().disable() | ||
} | ||
@Bean | ||
fun securityFilterChain(http: HttpSecurity): SecurityFilterChain = | ||
http.authorizeRequests() | ||
.anyRequest() | ||
.permitAll() | ||
.and() | ||
.csrf() | ||
.disable() | ||
.cors() | ||
.disable() | ||
.build() | ||
|
||
@Bean | ||
fun bcryptPasswordEncoder(): BCryptPasswordEncoder { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ import com.jmsoftware.maf.common.bean.PaginationBase | |
* | ||
* @author Johnny Miller (锺俊), e-mail: [email protected], date: 4/14/22 10:38 PM | ||
*/ | ||
data class GetQuartzJobConfigurationPageListPayload( | ||
val serviceName: String? | ||
) : PaginationBase() | ||
class GetQuartzJobConfigurationPageListPayload : PaginationBase() { | ||
val serviceName: String? = null | ||
} |