Current Version:2.0.4-SNAPSHOT
JDK Baseline:17
Group ID:io.github.easy4j
Artifact ID:security-biz-spring-boot-starter
License:Apache License 2.0
1. Positioning
security-biz-spring-boot-starter is a Spring Boot starter that integrates security-biz for applications using security-biz. It provides auto-configuration, property binding, and ready-to-use beans so that applications can consume security-biz capabilities with minimal setup.
| Dimension |
Description |
| Type |
Spring Boot Starter |
| Consumers |
Spring Boot applications using security-biz |
| Core Capabilities |
auto-configuration, property binding, ready-to-use beans for security-biz |
| JDK |
17 |
| Coordinates |
io.github.easy4j:security-biz-spring-boot-starter:2.0.4-SNAPSHOT |
| Config Prefix |
security.biz |
2. Core Capabilities
| Capability |
Status |
Description |
| Auto-configuration |
✅ Stable |
Registers security-biz beans automatically |
| Property Binding |
✅ Stable |
Binds security.biz.* to SecurityBizProperties |
ReactiveRequestContextFilter bean |
✅ Stable |
Auto-registered via ReactiveSecurityBizAutoConfiguration, SecurityBizAutoConfiguration, SecurityFormFilterAutoConfiguration |
3. Requirements and Compatibility
| Dependency |
Minimum |
Evidence |
| JDK |
17 |
pom.xml |
| Spring Boot |
2.6.0 |
pom.xml parent |
| Maven |
3.6+ |
Maven Enforcer |
4. Auto-configuration
The starter auto-configures the following beans:
| Bean |
Condition |
Missing Behavior |
ReactiveRequestContextFilter |
classpath + property |
not created |
DefaultMatchedServerAuthenticationFailureHandler |
classpath + property |
not created |
DefaultMatchedServerAuthenticationEntryPoint |
classpath + property |
not created |
ServerAuthenticationEntryPoint |
classpath + property |
not created |
ServerAuthenticationSuccessHandler |
classpath + property |
not created |
ServerAuthenticationFailureHandler |
classpath + property |
not created |
ReactiveServerAccessDeniedHandler |
classpath + property |
not created |
ServerLogoutSuccessHandler |
classpath + property |
not created |
ObjectMapper |
classpath + property |
not created |
GrantedAuthoritiesMapper |
classpath + property |
not created |
PermissionEvaluator |
classpath + property |
not created |
CaptchaResolver |
classpath + property |
not created |
LogoutHandler |
classpath + property |
not created |
LogoutSuccessHandler |
classpath + property |
not created |
RememberMeServices |
classpath + property |
not created |
RedirectStrategy |
classpath + property |
not created |
RequestCache |
classpath + property |
not created |
SessionAuthenticationStrategy |
classpath + property |
not created |
SessionInformationExpiredStrategy |
classpath + property |
not created |
SessionRegistry |
classpath + property |
not created |
CsrfTokenRepository |
classpath + property |
not created |
InvalidSessionStrategy |
classpath + property |
not created |
AuthenticatingFailureCounter |
classpath + property |
not created |
DefaultMatchedAuthenticationFailureHandler |
classpath + property |
not created |
DefaultMatchedAuthenticationEntryPoint |
classpath + property |
not created |
IngoringWebSecurityCustomizer |
classpath + property |
not created |
SecurityFilterChain |
classpath + property |
not created |
SecurityContextLogoutHandler |
classpath + property |
not created |
PostRequestAuthenticationProvider |
classpath + property |
not created |
SecurityFilterChain |
classpath + property |
not created |
Auto-configuration registration:
META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports (Spring Boot 2.7+ / 3.x / 4.x)
META-INF/spring.factories (Spring Boot 2.x legacy)
5. Dependency
<dependency>
<groupId>io.github.easy4j</groupId>
<artifactId>security-biz-spring-boot-starter</artifactId>
<version>2.0.4-SNAPSHOT</version>
</dependency>
No additional easy4j component dependencies.
6. Quick Start
6.1 Add dependency
Add the dependency above to your pom.xml.
6.2 Configure
security.biz:
enabled: true
6.3 Use the bean
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
Then inject the auto-configured bean in your code:
@Autowired
private ReactiveRequestContextFilter requestContextFilter;
7. Configuration Reference
7.1 Config Prefix
security.biz
7.2 Configuration Items
| Property |
Type |
Default |
Required |
Description |
Sensitive |
security.biz.enabled |
boolean |
true |
No |
Enable the starter |
No |
8. Version Lines and Compatibility
| Branch |
JDK |
Spring Boot |
Component Version |
Status |
2.3.x / 2.7.x |
8+ |
2.3.x / 2.7.x |
1.0.x |
Maintenance |
3.0.x ~ 3.5.x |
17 |
3.x |
2.0.x |
Maintenance |
4.0.x / 4.1.x |
17+ |
4.x |
3.0.x |
Active |
9. Build and Test
mvn clean verify
mvn -pl security-biz-spring-boot-starter -am test
10. Troubleshooting
| Symptom |
Diagnosis |
Resolution |
| Bean not created |
Check auto-configuration report |
Verify security.biz.enabled=true and classpath |
ClassNotFoundException |
Missing dependency |
Add the required module |
| Version conflict |
mvn dependency:tree |
Use BOM for version alignment |
11. Contribution
- Fork the repository.
- Create a feature branch.
- Run
mvn clean verify before submitting.
- Submit a pull request.
12. License
This project is licensed under the Apache License, Version 2.0.