@Configuration – defines this class as a Spring Configuration class
@PropertySource – loads in external properties into the Environment
@Bean – defines a Spring bean, where the bean name is defined by the method name and the type is defined by the return type
@Value – uses SpEL (Spring Expression Language) to extract property values from the autowired Environment, note the pound sign “#” indicates a bean reference
getDatabaseDialect() – is required to be implemented in concrete classes
getJpaProperties() – is expected to be implemented in concrete classes
The getters will provide values from the environment, via the concrete Jpa config classes
Spring 3.1 now includes support for the long awaited environment aware feature called profiles. Now we can activate profiles in our application, which allows us to define beans by deployment regions, such as “dev”, “qa”, “production”, “cloud”, etc.
We also can use this feature for other purposes: defining profiles for performance testing scenarios such as “cached” or “lazyload”.
ATUMобратиться по имениHow to configure spring security 3.2 to use dao authentication and custom authentication filter using java config Пятница, 19 Сентября 2014 г. 10:54 (ссылка)
How to configure spring security 3.2 to use dao authentication and custom authentication filter using java config