Setting up spring security environment
At present, spring officially only provides Maven download methods. But in http://maven.springframework.org There are ways to download spring security and all other spring products.
http://maven.springframework.org/release/org/springframework/ There are all spring related downloads in, but it seems that until version 3.2, the latest version can't be found in this
http://maven.springframework.org/release/org/springframework/security/spring-security/3.2.0.RELEASE/ This is spring security 3 Download address of 2
Maven download address:
This tutorial is based on spring MVC 3 2+Hibernate4+JPA2. 0+SpringSecurity3. 2 environment. SpringMVC3. 2+Hibernate4+JPA2. I won't talk more about the construction of 0 environment here, mainly about the construction of spring security environment
web. XML configuration
applicationContext-security. XML namespace configuration. Two configuration schemes are officially provided
First, the namespace starts with beans, but it always needs to be configured with < security: * > in configuration.
Second, the namespace starts with security. The security prefix is not required in the configuration, but the bean configuration needs to be configured with < beans: bean >.
So far, the environment configuration of spring security has been basically completed
The namespace configuration can be found in the spring official document, Chapter 4 security namespace configuration, and the link address is attached below
http://docs.spring.io/spring-security/site/docs/3.2.0.RELEASE/reference/htmlsingle/#ns -config
summary
The above is the spring security environment that Xiaobian introduced to you. I hope it will be helpful to you. If you have any questions, please leave me a message, and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!