摘要: 代码没有错误,但导入eclipse后疯狂报错 原因:没有配置maven依赖 解决方案:点击项目->window->preferences->maven->User settings 等待maven依赖下载完成即可 阅读全文
posted @ 2020-09-22 17:21 面向帅哥编程 阅读(593) 评论(0) 推荐(0)
摘要: 参考博文 Mapper接口应添加@Mapper注解 service类应该添加@Service注解 阅读全文
posted @ 2020-09-14 16:25 面向帅哥编程 阅读(1438) 评论(0) 推荐(0)
摘要: 参考博客 解决办法: 对于swagger上不展示的字段,在实体类中手动添加getter和setter方法即可 阅读全文
posted @ 2020-09-10 11:06 面向帅哥编程 阅读(1291) 评论(1) 推荐(0)
摘要: 1 <dependency> 2 <groupId>org.thymeleaf</groupId> 3 <artifactId>thymeleaf-spring5</artifactId> 4 </dependency> 5 <dependency> 6 <groupId>org.thymeleaf 阅读全文
posted @ 2020-08-26 11:08 面向帅哥编程 阅读(763) 评论(0) 推荐(0)
摘要: 参考博客:https://blog.csdn.net/Leo_libin/article/details/84101663 访问controller地址时,显示错误页面,报错如下: 1 Whitelabel Error Page 2 This application has no explicit 阅读全文
posted @ 2020-08-25 16:14 面向帅哥编程 阅读(1090) 评论(0) 推荐(0)
摘要: @GetMapping public JsonResp<List<DtoLandRegion>> getLandRegionList() { List<DtoLandRegion> regions = service.getLandRegionList(); return JsonResp.newS 阅读全文
posted @ 2020-08-10 14:22 面向帅哥编程 阅读(1072) 评论(0) 推荐(0)
摘要: mapper.xml文件中传入list参数,使用foreach循环遍历值,但是在遍历的过程中出错了,具体代码如下所示 mapper.xml 1 <select id="selectByCondition2" resultType="java.util.Map"> 2 select id,name f 阅读全文
posted @ 2020-08-07 14:58 面向帅哥编程 阅读(884) 评论(0) 推荐(0)
摘要: @RequestMapping("/test") public String getData() { return "redirect:/other";} redirect表示重定向,return到其他方法。 阅读全文
posted @ 2020-08-05 09:05 面向帅哥编程 阅读(380) 评论(0) 推荐(0)