java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230
and RFC 3986
1、解决方法:
重新写ajax的方法
Public Key Retrieval is not allowed
2、解决方法:
在连接数据库的url中加allowPublicKeyRetrieval=true
Field userMapper in graduatedemo.demo.service.Userservice required a bean of type 'graduatedemo.demo.dao.UserMapper'
that could not be found.
3、解决办法:
在启动类里加Mapperscan(”dao包的相对路径“)
4、去掉@Autowired注入的对象,setting–inspections–Spring–Spring Core–Code–Autowiring for Bean Class–Error改成Warning
Failed to start component
5、没有sfl4j
解决办法:在resource中添加sfl4j
6、Failed to start component项目启动报错
解决办法:重新导入一个tomcat
7、Failed to start connector [Connector[HTTP/1.1-8280]]
端口被占用
8、Could not find default TaskScheduler beanorg.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.scheduling.TaskScheduler' available
解决办法:在log4j的配置文件中加:log4j.logger.org.springframwork.scheduling = INFO,其实不影响项目启动
9、Exception encountered during context initialization上下文出现异常
10、0 test classes found in package 'templates.common'
未找到有效解决方法
11、Exception encountered during context initialization
解决办法:运行入口查看是否扫描dao包