报错的日志
- Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
- Disconnected from the target VM, address: ‘127.0.0.1:50861’, transport: ‘socket’
- ERROR com.alibaba.druid.pool.DruidDataSource - {dataSource-1} init error
- ERROR com.xxx.xxx.pool.DruidDataSource - init datasource error, url:
jdbc:mysql://101.133.133.168:63306/suyDB?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useTimezone=true&serverTimezone=GMT%2B8&useSSL=false- java.sql.SQLException: null, message from server: “Host ‘192.158.0.133’ is blocked because of many connection errors; unblock
with ‘mysqladmin flush-hosts’”- Error creating bean with name ‘myShiroRealm’: Injection of resource dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘sysUserDao’ defined in file
[E:xxx-platformhmb-serverhmb-modulesmodule-
原因:
在service层没加 注解:@Service,导致无法注入spring容器



