Skip to content
Advertisement

Tag: spring

Spring autherization http security redirection, session issue

I am using Spring http security(Enablewebsecurity) to manage sessions. But the issue I am facing is, whenever I start the application, the app is opening always home page instead of going to login page. The requirement here is if session is out, need to go login page. Also session needs to time out for 30minutes. Is there any wrong with

Spring DataSource password in separate properties file causes “Failed to determine a suitable driver class”

I have the following Spring configuration Which is configured into the following class (annotations are lombok and Spring). This works just fine when all the properties are in one application.properties file. The application starts up properly. I am trying to move the password line into it’s own application-secret.properties file, and keep the other properties in the main application.properties file. I

Library with Spring AutoConfiguration: spring.factories and what else?

We intend to develop a library with Spring Components that all of our Spring Applications should have, like Beans that connect to our monitoring, administration and ochestration services. The idea was, to make use of Springs’ “AutoConfiguration”-mechanism. For a Starter I wrote a class com.mycorp.project.basic.startup-notification.StartupNotificationPublisher.class which, uppon “ApplicationStartedEvent” sends a Message via our favorite message broker (which for the exmample

Advertisement