ider中运行web项目出现的问题及解决方法

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包

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值