
日常报错
问奈何w
这个作者很懒,什么都没留下…
展开
-
使用spring security第一次登录是失败的,没有走defaultSuccessUrl指定页面
只需要在defaultSuccessUrl("/admin/to/main/page.html",true) 加一个true即可。转载 2020-12-05 14:20:48 · 840 阅读 · 2 评论 -
SqlSession was not registered for synchronization because synchronization is not active
ssm整合时,并且有事务控制。日志中有以下情况【sqlsession和JDBC 连接同时出错】[SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@3f57bcad] was not registered for synchronization because synchronization is not active][JDBC Connection [com.mysql.jdbc.JDBC4Connection@38234原创 2020-05-18 14:14:03 · 2447 阅读 · 0 评论 -
Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException
ssm整合,若报以下错误Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'adminServiceImpl' is expected to be of type 'com.atguigu.crowd.service.impl.AdminServiceImpl' but was actually of type 'com.sun.proxy.$Proxy20'主要问题就是注入不能原创 2020-05-18 14:01:34 · 389 阅读 · 1 评论 -
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate
最后找到是空格问题我在这个报错项目之前,创建了两个项目,都没问题,在这个项目的创建过程中报错了,我在网上找了很多教程,都无法解决我这个问题。因为我ArtifactId是copy过来的,所以我试了一下,发现最后面出现了一个空格,删除后,项目正确创建。...原创 2020-05-16 01:34:00 · 703 阅读 · 0 评论