摘要: 链接:https://www.cnblogs.com/avivaye/p/6437555.html 阅读全文
posted @ 2018-10-31 09:12 帅的很耗cpu 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 加入依赖包 阅读全文
posted @ 2018-10-26 16:42 帅的很耗cpu 阅读(3669) 评论(0) 推荐(0) 编辑
摘要: TableMapper.xml查询出所有的数据且不加任何条件 TableDao 数据库查询拿到List<实体类> list所有数据的集合,且该方法需要传参数Page<实体类> page ServiceImpl的方法需要一个Page<实体类> page参数和Page<实体类>的返回类型从control 阅读全文
posted @ 2018-10-26 15:41 帅的很耗cpu 阅读(1857) 评论(0) 推荐(0) 编辑
摘要: 自定义配置文件application-dev.yml 创建一个实体类 configYml 直接调用configYml的get方法即可 阅读全文
posted @ 2018-10-26 13:02 帅的很耗cpu 阅读(3779) 评论(0) 推荐(0) 编辑
摘要: 转载地址:https://www.cnblogs.com/lunaticcoder/p/9813483.html(具体的看这个这个大佬的博客) 依赖包: 前端在提交的时候也需要修改.form表单提交默认是application/x-www-form-urlencoded而上传文件把文件用2进制的方式 阅读全文
posted @ 2018-10-19 11:31 帅的很耗cpu 阅读(27593) 评论(0) 推荐(1) 编辑
摘要: 模板转载地址:https://www.cnblogs.com/zhangyangtao/p/9802948.html 直接上代码(我是基于ssm写的demo,导入文件目前只能读取.xls后缀的excel文件) 导入excel文件读取数据的方法 阅读全文
posted @ 2018-10-18 13:52 帅的很耗cpu 阅读(4586) 评论(0) 推荐(0) 编辑
摘要: 封装的工具类 转载地址:https://www.cnblogs.com/hhmm99/p/9803119.html 内容很简单,但是感觉很有用 下面是Spring的通过@Value注解读取.properties配置内容 在Spring-dao.xml的配置文件中配置 1 <util:properti 阅读全文
posted @ 2018-10-17 17:01 帅的很耗cpu 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 感觉@撸码识途 https://www.cnblogs.com/tinyj/p/9786131.html 加上的情况: 访问localhost:8080/demo,没有带上参数,会报错。可以通过设置@RequestParm里面的属性required属性为false,设置后不传参数也不会报错。 还可以 阅读全文
posted @ 2018-10-15 13:14 帅的很耗cpu 阅读(1263) 评论(0) 推荐(0) 编辑
摘要: 转载简书:https://www.jianshu.com/p/a164d582e5d9 主要是因为驱动配置变了driver中得用com.mysql.cj.jdbc.Driver,多了个cj; url后面serverTimezone=UTC必须加 阅读全文
posted @ 2018-10-15 11:44 帅的很耗cpu 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/qq_39874546/article/details/79081950 https://www.cnblogs.com/moonlightL/p/8126910.html 1. Shiro入门 ApacheShiro是一个功能强大且易于使用的Jav 阅读全文
posted @ 2018-10-10 20:31 帅的很耗cpu 阅读(293) 评论(0) 推荐(0) 编辑