先上日志2019-11-20 17:25:29.807 INFO 271320 --- [ main] com.me.bbs.StartApplication : No active profile set, falling back to default profiles: default
2019-11-20 17:25:30.088 INFO 271320 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@73a1e9a9: startup date [Wed Nov 20 17:25:30 CST 2019]; root of context hierarchy
2019-11-20 17:25:33.784 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'shiroConfiguration' of type [com.me.bbs.config.ShiroConfiguration$$EnhancerBySpringCGLIB$$a921df1c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:33.836 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jdbc' of type [com.me.bbs.config.property.Jdbc] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:33.839 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dataConfiguration' of type [com.me.bbs.config.DataConfiguration$$EnhancerBySpringCGLIB$$426cce53] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:33.942 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dataSource' of type [org.apache.commons.dbcp2.BasicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:33.975 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.context.properties.ConversionServiceDeducer$Factory' of type [org.springframework.boot.context.properties.ConversionServiceDeducer$Factory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.016 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties' of type [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.030 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerInvoker' of type [org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerInvoker] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.031 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'myConfig' of type [com.me.bbs.config.MyConfig$$EnhancerBySpringCGLIB$$5625eac5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.034 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$b2f0734a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.226 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'getHashedCredentialsMatcher' of type [org.apache.shiro.authc.credential.HashedCredentialsMatcher] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.648 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sqlSessionFactory' of type [org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.696 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sqlSessionTemplate' of type [org.mybatis.spring.SqlSessionTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.730 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'userMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.733 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'userMapper' of type [com.sun.proxy.$Proxy53] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.762 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'userRoleMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.764 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'userRoleMapper' of type [com.sun.proxy.$Proxy54] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.795 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'roleMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.797 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'roleMapper' of type [com.sun.proxy.$Proxy56] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.861 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'permissionMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.862 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'permissionMapper' of type [com.sun.proxy.$Proxy57] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.882 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'rolePermissionMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.884 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'rolePermissionMapper' of type [com.sun.proxy.$Proxy58] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.886 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'userServiceImpl' of type [com.me.bbs.service.impl.UserServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.906 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'roleServiceImpl' of type [com.me.bbs.service.impl.RoleServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:35.038 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sySAuthMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:35.039 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sySAuthMapper' of type [com.sun.proxy.$Proxy62] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:35.043 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'permissionServiceImpl' of type [com.me.bbs.service.impl.PermissionServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:35.043 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'shiroRealm' of type [com.me.bbs.realm.ShiroRealm] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:35.094 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'securityManager' of type [org.apache.shiro.web.mgt.DefaultWebSecurityManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:30.088 INFO 271320 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@73a1e9a9: startup date [Wed Nov 20 17:25:30 CST 2019]; root of context hierarchy
2019-11-20 17:25:33.784 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'shiroConfiguration' of type [com.me.bbs.config.ShiroConfiguration$$EnhancerBySpringCGLIB$$a921df1c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:33.836 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jdbc' of type [com.me.bbs.config.property.Jdbc] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:33.839 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dataConfiguration' of type [com.me.bbs.config.DataConfiguration$$EnhancerBySpringCGLIB$$426cce53] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:33.942 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dataSource' of type [org.apache.commons.dbcp2.BasicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:33.975 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.context.properties.ConversionServiceDeducer$Factory' of type [org.springframework.boot.context.properties.ConversionServiceDeducer$Factory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.016 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties' of type [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.030 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerInvoker' of type [org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerInvoker] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.031 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'myConfig' of type [com.me.bbs.config.MyConfig$$EnhancerBySpringCGLIB$$5625eac5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.034 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$b2f0734a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.226 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'getHashedCredentialsMatcher' of type [org.apache.shiro.authc.credential.HashedCredentialsMatcher] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.648 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sqlSessionFactory' of type [org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.696 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sqlSessionTemplate' of type [org.mybatis.spring.SqlSessionTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.730 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'userMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.733 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'userMapper' of type [com.sun.proxy.$Proxy53] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.762 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'userRoleMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.764 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'userRoleMapper' of type [com.sun.proxy.$Proxy54] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.795 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'roleMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.797 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'roleMapper' of type [com.sun.proxy.$Proxy56] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.861 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'permissionMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.862 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'permissionMapper' of type [com.sun.proxy.$Proxy57] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.882 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'rolePermissionMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.884 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'rolePermissionMapper' of type [com.sun.proxy.$Proxy58] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.886 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'userServiceImpl' of type [com.me.bbs.service.impl.UserServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:34.906 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'roleServiceImpl' of type [com.me.bbs.service.impl.RoleServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:35.038 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sySAuthMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:35.039 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'sySAuthMapper' of type [com.sun.proxy.$Proxy62] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:35.043 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'permissionServiceImpl' of type [com.me.bbs.service.impl.PermissionServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:35.043 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'shiroRealm' of type [com.me.bbs.realm.ShiroRealm] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-11-20 17:25:35.094 INFO 271320 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'securityManager' of type [org.apache.shiro.web.mgt.DefaultWebSecurityManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
解决方案 »
- 在线等,在jsp页面如何获取服务器返回的状态码?
- Struts2_Action的问题!!在等··
- ibatis 动态语句 iterate使用 在线等
- hibernate 查询flag字段的第六位字符怎么写?好象不支持flag[6] 这种形式啊
- 本人最近想学java,有谁知道武汉有哪个好点的java培训学校啊
- 是否是hibernate处理时间方式造成的问题还是jdbc的问题
- 100分初级问题,在jbuilder如何建立一个工程,开发一个jsp tomcat
- 这是什么错误?
- 熟悉JB8+Weblogic7的兄弟请帮忙
- 这么多人,就没有懂EJB+JB的吗?我都浪费了200分了
- @Data注解使用时,传递参数的时候Double类型的属性,后端接收为null
- jar包替换问题
@Order(3)
public class ShiroConfiguration { @Bean
public ShiroFilterFactoryBean shiroFilterFactoryBean(SecurityManager securityManager){
ShiroFilterFactoryBean shiroFilterFactoryBean = new ShiroFilterFactoryBean();
shiroFilterFactoryBean.setSecurityManager(securityManager); System.out.println(">>>>>>>>>>>>>>>>"); // 过滤链定义,从上向下顺序执行,一般将 /**放在最为下边
Map<String, String> filterChainDefinitionManager = new LinkedHashMap<String, String>();
// 配置退出过滤器,其中的具体的退出代码Shiro已经替我们实现了
filterChainDefinitionManager.put("/logout", "logout");
// authc:所有url都必须认证通过才可以访问; anon:所有url都都可以匿名访问
filterChainDefinitionManager.put("/user/register", "anon");
filterChainDefinitionManager.put("/user/login.htm", "anon");
filterChainDefinitionManager.put("/user/userUogin", "anon");
filterChainDefinitionManager.put("/user/getUser", "anon");
filterChainDefinitionManager.put("/test/**", "anon");
filterChainDefinitionManager.put("/css/**", "anon");
filterChainDefinitionManager.put("/fonts/**", "anon");
filterChainDefinitionManager.put("/images/**", "anon");
filterChainDefinitionManager.put("/js/**", "anon");
filterChainDefinitionManager.put("/html/**", "anon");
filterChainDefinitionManager.put("/element/**", "anon"); filterChainDefinitionManager.put("/user/**", "authc,roles[user]");
filterChainDefinitionManager.put("/admin/**", "authc,roles[admin]");
filterChainDefinitionManager.put("/index", "anon");
filterChainDefinitionManager.put("/ajaxLogin", "anon");
filterChainDefinitionManager.put("/register","anon");
filterChainDefinitionManager.put("/**", "authc");//其他资源全部拦截
shiroFilterFactoryBean.setFilterChainDefinitionMap(filterChainDefinitionManager); // 被拦截跳转页面
shiroFilterFactoryBean.setLoginUrl("/user/login.htm");
// 未授权界面
shiroFilterFactoryBean.setUnauthorizedUrl("/user/error.html"); return shiroFilterFactoryBean;
} @Bean
public SecurityManager securityManager(){
DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager();
securityManager.setRealm(shiroRealm());
return securityManager;
} @Bean
public ShiroRealm shiroRealm() {
ShiroRealm realm = new ShiroRealm();
realm.setCredentialsMatcher(getHashedCredentialsMatcher());
realm.setAuthorizationCachingEnabled(true);
return realm;
} @Bean
public HashedCredentialsMatcher getHashedCredentialsMatcher(){
HashedCredentialsMatcher matcher = new HashedCredentialsMatcher();
matcher.setHashAlgorithmName("MD5");//散列算法,这里使用md5
matcher.setHashIterations(2);//加密次数相当于md5(md5(md5(...)))
matcher.setStoredCredentialsHexEncoded(true);
return matcher;
}}
server:
port: 9000spring:
datasource:
url: 456456
username: 456456
password: 4564564
driver-class-name: com.mysql.jdbc.Driver
type: org.apache.commons.dbcp2.BasicDataSource dbcp2:
validation-query: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
max-wait-millis: 60000000
min-idle: 0 #最小空闲连接:连接池中容许保持空闲状态的最小连接数量,
initial-size: 5 #初始化连接数量 thymeleaf:
# 清除缓存
cache: false
prefix: classpath:/html/
suffix: .html #后缀
mode: LEGACYHTML5 #非严格模式
servlet:
content-type: text/html
mybatis:
mapper-locations: classpath:/mapper/*.xml
type-aliases-package: startApplication.model
configuration:
map-underscore-to-camel-case: truelogging:
level:
root: TARCE#logging:
# level:
# startApplication.dao : debug
https://ask.csdn.net/questions/759132
解决办法是延迟初始化
https://www.cnblogs.com/yuluoxingkong/p/10149792.html
https://ask.csdn.net/questions/759132
解决办法是延迟初始化
https://www.cnblogs.com/yuluoxingkong/p/10149792.html