Bug
DcForever
a huge DC fan~
展开
-
Dubbo报错:no provider available for the service
在整合dubbo开发项目的时候,服务端能正常启动,启动web端的时候,控制台报错:no provider available for the service这是个比较头疼的问题,控制台报错如下Error starting ApplicationContext. To display the conditions report re-run your application with 'debu...原创 2019-05-25 12:05:37 · 7768 阅读 · 0 评论 -
SpringBoot报错:Missing URI template variable 'XX' for method parameter of type XX
原因:控制器Controller层方法上的注解:@RequestMapping里的的实参和方法中的形参不一致导致的。如上图所示,@RequestMapping 注解里的实参 patientId 要和 方法中的形参 patientId 相同,否则会报错。如果想在@RequestMapping 中使用和 方法中的形参数名不相同的 实参名需要在@PathVariable注解内指定名称 @Pat...原创 2019-06-01 10:58:48 · 7242 阅读 · 1 评论 -
MyBatis报错---元素内容必须由格式正确的字符数据或标记组成
今天在写mybatis的配置文件查询数据库操作的时候,控制台报错:元素内容必须由格式正确的字符数据或标记组成我的代码为: <!-- 根据id查询医生一周内的排班信息 --> <select id="getWorkWithinAWeek" resultMap="BaseResultMap" > select <include refid="Base_Co...原创 2019-06-03 19:10:15 · 489 阅读 · 0 评论 -
Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'deny'报错
今天写项目的时候遇到了一个问题,使用iframe嵌入网页,浏览器报错:Refused to display ‘url’ in a frame because it set ‘X-Frame-Options’ to ‘deny’。网上查了一下原因:是SpringSecurity 防止恶意注入,所以设置了X-Frame-Options为deny。如下图:解决问题,把这个X-Frame-Optio...原创 2019-06-10 19:36:58 · 4443 阅读 · 4 评论