Spring security is designed to provide both authentication and authorization to Java applications. This article mainly try to describe spring security from a general concept view, give you a whole picture of how the spring security works in most usage. Other articles are: Understand spring security easily – developer view (to be continued) Understand spring security easily – annotation example...
Wednesday, December 30, 2015
Tuesday, December 29, 2015
"Config method" in Spring framework
1. Concept What is config method in Spring? Any method that is anotated by @autowired is config method. What’s the difference between a normal method and a config method in spring? Config method will be automatically invoked when the bean instance created, after constructor but before @PostConstruct. The parameters of config method will be autowired from the application context. The...
Wednesday, December 23, 2015
Break down package java.util.concurrent.locks
Since JDK 5, Java introduced the most powerful enhancement for concurrence, the package java.util.concurrent.This package contain 2 subpackages, one of them is java.util.concurrent.locks, which provides the notion of locks for synchorization. (BTW, the other subpackage is java.util.concurrent.atomic,...
Wednesday, December 16, 2015
Use Spring Test without @RunWith(SpringJUnit4ClassRunner.class)
This is a new feature from Spring framework 4.2. Now you can use other JUnit's runners,like Parameterized or MockitoJUnitRunner but without losing spring test benefits. (with all the features you love with spring-test like spring Dependency Injection , Auto-rollback Transaction for test and etc)....
Wednesday, December 9, 2015
Most used Hibernate properties during development
Hibernate has many properties that can be very helpful during development phrase. In this article we list some most used hibernate properties used when developing/testing persistence layer applications. 1. Meaning of most used hibernate properties 1.1 Print out Hibernate created SQL hibernate.show_sql = true 1.2 Automatic create tables according to entities hibernate.hbm2ddl.auto = create...
Tuesday, December 1, 2015
Remote Debug in Eclipse
Remote debug a Java application means the application run on a different VM rather than the one used for Eclipse. The Java application can run on the same host of you Eclipse as a separate process or on remote host. In practical remote debug happens when there are some external environments in production...
Subscribe to:
Posts (Atom)
Powered by Blogger.
About The Author

View my complete profile