A note written before the article: In the company's spare time, learn about the Apache Shiro framework. There is nothing original here, just a simple record.
1. References, Kai Tao's blog - Follow Shiro with me, http://jinnianshilongnian.iteye.com/blog/2018398
2. When building the maven-archetype-webapp project, I get the following error
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories. Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from http://maven.antelink.com/content/repositories/central/ was cached in the local repository, resolution will not be reattempted until the update interval of maven.net.cn has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to maven.net.cn (http://maven.antelink.com/content/repositories/central/): connection timed out to http://maven.antelink.com/content/repositories/central/org/apache/maven/archetypes/maven-archetype-webapp/1.0/maven-archetype-webapp-1.0.pom Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from http://maven.antelink.com/content/repositories/central/ was cached in the local repository, resolution will not be reattempted until the update interval of maven.net.cn has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to maven.net.cn (http://maven.antelink.com/content/repositories/central/): connection timed out to http://maven.antelink.com/content/repositories/central/org/apache/maven/archetypes/maven-archetype-webapp/1.0/maven-archetype-webapp-1.0.pom
Solution : Add a new catalog in eclipse maven, http://repo1.maven.org/maven2/archetype-catalog.xml , link URL ( http://blog.csdn.net/afgasdg/article/details/ 12757433 )
3. MySQL database delete from users, update error:
17:29:44 delete from users Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Queries and reconnect. 0.000 sec
Solution: set SQL_SAFE_UPDATES =0
4. When importing the source code in eclipse, because JRE1.5 is automatically referenced, the error "@Override needs to be removed" appears, and the jdk can be changed to 1.6 or 1.7