Configure Morphia and MongoTemplate in same application - spring

Does spring boot allow configuring Morphia and MongoTemplate in the same application?

Related

Spring's Observability API alternative for #Timed annotation

We're upgrading our app to Spring boot 3 and the new Observability API. In the old way we would just create a timedAspect bean and that would allow us to use #Timed annotations to automatically create metrics for those methods/classes.
The new spring ObservabilityAPI does not seem to provide an aspect oriented way of adding metrics to ObservationRegistry. Does spring boot or micrometer provide any alternative to the #Timed annotation for collecting metrics in this new observability system.

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

Spring Boot does not support hikari keepaliveTime configuration

Can you please let us know how can I can pass keepaliveTime config to Hikari in spring boot 2.1.12
There seems to be setter called setKeepaliveTime on the DataSource objectsee docs
There is an article on how to configure datasource configurations specifically for sping boot here

Override Spring Security autoconfiguration

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.

Resources