
club.zhcs.lina.starter.web.GlobalResponseAutoConfiguration Maven / Gradle / Ivy
package club.zhcs.lina.starter.web;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import club.zhcs.lina.web.response.GlobalResponseHandler;
/**
*
* @author kerbores([email protected])
*
*/
@AutoConfiguration
@EnableConfigurationProperties(GlobalResponseConfigurationProerties.class)
@ConditionalOnExpression("${axe.global.response.enabled:false}")
public class GlobalResponseAutoConfiguration {
@Bean
GlobalResponseHandler globalResponseHandler(GlobalResponseConfigurationProerties proerties) {
return new GlobalResponseHandler(proerties.getIgnorePaths());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy