- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 springboot 2.x 使用pagehelper插件
对于使用Mybatis时,最头痛的就是写分页,需要先写一个查询count的select语句,然后再写一个真正分页查询的语句,当查询条件多了之后,会发现真不想花双倍的时间写count和select,如果你也在用 MyBatis,建议尝试该分页插件,这一定是最方便使用的分页插件。分页插件支持任何复杂的单表、多表分页。 怕忘记,以后使用方便使用,就记录下来。 1.引入依赖jar包: <d...
2019-04-16 15:42:48 481
原创 idea maven项目 mapper文件扫描不到解决方案
异常invalid bound statement (not found) pom 文件<build></build> 内添加以下代码 <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 --> <resources> <resource> <directory>s...
2019-03-21 12:53:58 1717
原创 mybaits 数据库版本问题
org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required ### The error may exist in com/zyx/...
2019-03-20 09:19:28 207
转载 springBoot 跨域请求设置
springBoot 跨域请求设置 springboot 项目添加此类即可 import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.cors.CorsConfigura...
2019-02-25 23:48:09 105
原创 js 多线程解决方案 Workers
** 简单实例 if(typeof(w)=="undefined") { w=new Worker("js/Workers/work1.js"); } w.onmessage=function(event){ console.log(event.data) }; js/Workers/work1.js 部分 var i=0; function timedCou...
2019-02-18 20:43:50 264
原创 jq判断手机端用户滑动方向事件
$("body").on("touchstart", function(e) { // 判断默认行为是否可以被禁用 if (e.cancelable) { // 判断默认行为是否已经被禁用 if (!e.defaultPrevented) { e.preventDefault(); ...
2019-02-16 20:33:59 1097
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人