Apache Shiro学习笔记

香帅 2016-07-06

        写在文章前的说明:在公司闲暇时间,学习一下Apache Shiro框架,这里没有什么原创性的东西,只是简单的记录。

        2. 构建maven-archetype-webapp项目时,出现以下错误

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

         解决方法:在eclipse maven中添加新的catalog,http://repo1.maven.org/maven2/archetype-catalog.xml,链接网址(http://blog.csdn.net/afgasdg/article/details/12757433

        3.MySQL 数据库 delete from users,更新出现错误:

       

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

      

         解决:set SQL_SAFE_UPDATES =0

         4.在eclipse中导入源码时,由于自动引用JRE1.5,导致出现“需要移除@Override”的错误,jdk改为1.6或1.7即可

相关推荐

lionelf / 0评论 2020-07-28