Apache Shiro学习笔记
写在文章前的说明:在公司闲暇时间,学习一下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即可
相关推荐
xclxcl 2020-08-03
zmzmmf 2020-08-03
likesyour 2020-08-01
风之沙城 2020-09-24
Kafka 2020-09-18
Wepe0 2020-10-30
杜倩 2020-10-29
windle 2020-10-29
minerd 2020-10-28
mengzuchao 2020-10-22
Junzizhiai 2020-10-10
bxqybxqy 2020-09-30
kingszelda 2020-09-22
大唐帝国前营 2020-08-18
yixu0 2020-08-17
TangCuYu 2020-08-15
xiaoboliu00 2020-08-15
songshijiazuaa 2020-08-15
newfarhui 2020-08-03