摘要: 一、问题 优雅REST风格的资源URL不希望带 .html 或 .do 等后缀. 由于早期的Spring MVC不能很好地处理静态资源,所以在web.xml中配置DispatcherServlet的请求映射,往往使用 *.do 、 *.xhtml等方式。 这就决定了请求URL必须是一个带后缀的URL 阅读全文
posted @ 2021-07-29 16:57 MmeChan 阅读(240) 评论(0) 推荐(1)
摘要: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2021-07-27 14:38 MmeChan 阅读(457) 评论(0) 推荐(0)
摘要: 配的JReble插件。可以热部署Mybatis的xml文件 一、安装插件 二、在线生成GUID 网址:https://www.guidgen.com/ 三、设置Team URL 地址:https://jrebel.qekang.com/{GUID} 安装成功之后就可以通过JRebel启动项目。这样修 阅读全文
posted @ 2021-07-14 11:47 MmeChan 阅读(7668) 评论(0) 推荐(2)
摘要: 方法1(老版本的)、File -> setting界面 -> Updates -> 去掉Use secure connection的勾 方法2: 版本:2020.1 https://plugins.jetbrains.com/ 设置完等一会就能搜索了 方法3:离线安装,进入idea官网下载离线插件, 阅读全文
posted @ 2021-07-14 10:58 MmeChan 阅读(2119) 评论(0) 推荐(0)
摘要: 一、resultType resultType可以把查询结果封装到pojo类型中,但必须pojo类的属性名和查询到的数据库表的字段名一致。如果sql查询到的字段与pojo的属性名不一致,则需要使用resultMap将字段名和属性名对应起来,进行手动配置封装,将结果映射到pojo中 如果:数据表中的字 阅读全文
posted @ 2021-07-13 17:37 MmeChan 阅读(311) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-13 11:10 MmeChan 阅读(444) 评论(0) 推荐(0)
摘要: 一、出处: https://my.oschina.net/fdblog/blog/172229 https://www.cnblogs.com/hejj-bk/p/13384902.html (ctrl+s和ctrl+F9)可以进行保存和编译,但是太麻烦了 二、解决方案:录制宏 IDEA中有录制宏的 阅读全文
posted @ 2021-07-13 11:08 MmeChan 阅读(1749) 评论(0) 推荐(0)
摘要: 目录: 一、下载maven 二、修改maven中的一些配置 三、idea集成maven 版本: 一、下载maven 二、修改maven中的一些配置 三、idea集成maven 阅读全文
posted @ 2021-07-09 14:49 MmeChan 阅读(181) 评论(0) 推荐(0)
摘要: 版本: 一、问题 No converter found for return value of type: class java.util.ArrayList:Json格式转换问题 No converter found for return value of type: User(自定义的类):Js 阅读全文
posted @ 2021-07-09 14:33 MmeChan 阅读(153) 评论(0) 推荐(0)
摘要: 版本: 一、版本过低,web.xml报错,报错信息为: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*, 阅读全文
posted @ 2021-07-09 10:20 MmeChan 阅读(606) 评论(0) 推荐(0)