Tag Archives: Properties

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

Getting Ready To Static Code Analyze With Sonar-Runner (for Windows)

As a developer, I think static code analysis is very important. Our code is getting bigger day by day with the wishes of our customers. We have super time constraints and we must finish our development before strict deadlines. Because … Continue reading

Posted in Java | Tagged , , , , , , , | 11 Comments

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