Tag Archives: Spring

Injecting List with Spring from yaml

In my recent project, I need to fill a list from configuration file. With my old habits I just tried to use @Value annotation and my code just broke. Here is what I’ve tried first: application.yaml: AppRunner.java: However, it just … Continue reading

Posted in Java | Tagged , , , , , , , , , , , , | Leave a comment

Spring Security (+Spring) Custom Authentication Provider

I will continue from where I’ve finished in this post. You can customize my development according to your structure. The previous actions does not necessarily have to be done for Spring Security integration. But if you do, you will have … Continue reading

Posted in Java | Tagged , , , , , , , , , , , , , | 55 Comments

Serve Static Files With Spring In Java

In this writing, I accept that you have already created a Maven base dynamic web project or added necessary libraries to your classpath. If you haven’t, you can follow this instructions and return to this writing. For this example my … Continue reading

Posted in Java | Tagged , , , , , , , , , , , | Leave a comment

Spring Resource Bundle With ResourceBundleMessageSource In Static Method

I found two different ways to do this and one of them is a little bit harder to develop. I start with the hard way first, but in these examples you must need some environmental things: My messages.properties file is … Continue reading

Posted in Java | Tagged , , , , , , , , , , , , | Leave a comment