Override Spring Security autoconfiguration - spring

I have an jar with a own spring security filter and my own security configuration.
This jar is called from a Spring Boot application and I would like disable the spring boot security configuration (without excludes or properties) and put my spring security configuration (this jar is in spring 4.X). How can I build an autoconfiguration for my Spring Security,and override the autoconfiguration of Spring Boot by default?:

Finally, I have created my own auto-configuration, an class #autoconfiguration with an #conditionalonmissingclass and an import of my security.

Related

Migrate from springframework cloud aws messaging to awspring cloud messaging version 2.4.1

After changing my imports to use the awspring library, I had #EnableSqs marked as deprecated, how to enable sqs if #EnableSqs is deprecated?
In Spring Cloud version 2.3 #EnableXYZ as deprecated being replaced by use of Auto-Configuration. See doc
Spring Cloud AWS 2.3 is now available.
#EnableXXX annotations have been deprecated. We recommend using Spring Boot auto-configurations.
How to use Auto-configuration?
Spring Boot auto-configuration attempts to automatically configure your Spring application based on the jar dependencies that you have added. For example, if HSQLDB is on your classpath, and you have not manually configured any database connection beans, then Spring Boot auto-configures an in-memory database.
You need to opt-in to auto-configuration by adding the #EnableAutoConfiguration or #SpringBootApplication annotations to one of your #Configuration classes.

Migration of custom spring boot starter to quarkus

Do you know, how to use customized spring boot starter in quarkus. We have created a few spring boot starters for existing application. Now trying to migrate this app to quarkus. Beans defined in this spring boot starters are not scanned. I configured quakus.index- dependency.name but no luck

How to Refresh Spring Boot Configuration Info with Using Spring Cloud Config

I would like to ask how to refresh spring boot configuration info with using spring cloud config. Would you please give me some advice? Many thanks.
If your spring boot application is a client of Spring Cloud Configuration Server and use itself as single point of truth in the application configuration let's say retrieve application.properties/yml from the config server, you can benefit of #RefreshScope. in this case if you do a post to the /refresh if you use spring boot 1.x or /actuator/refresh if you use spring boot 2.x all the bean that are have are annotated as #RefreshScope will be refreshed.

Spring Boot 2 Actuator without Spring Boot

I would like to add Spring Boot actuator metrics to my existing Spring MVC 5 application (I cannot convert to Spring Boot).
There are a couple of answered questions on SO (Spring Boot Actuator without Spring Boot) but they are for using Spring Boot Actuator 1.x.
Spring Boot Actuator 2.x has been re-architected and so these instructions are no longer valid.
Has anyone integrated Spring Boot Actuator 2.x with a standard Spring MVC 5 app?
Unfortunately you cannot include Spring Boot Actuator without requiring Spring Boot. Spring Boot is a Maven dependency of the Spring Boot Actuator project (the name also suggests that spring boot is required).
You can check out the actual dependency of spring-boot in the pom of spring-boot-actuator.

Spring WebMvcSecurityConfiguration is Deprecated

I started configuring security for a Spring boot application but WebMvcSecurityConfiguration is marked deprecated.
Is there a better alternative to configure security?
I'm using spring boot 1.5.4.
From official documentation
As of Spring Security 4.0, #EnableWebMvcSecurity is deprecated. The replacement is #EnableWebSecurity which will determine adding the Spring MVC features based upon the classpath.
https://docs.spring.io/spring-security/site/docs/current/reference/html/mvc.html

Resources