05 2019 档案
摘要:1.集成到开发环境中 以maven管理的功能来举例,只需要将插件添加到pom.xml文件中即可。(注意此处是以plugin的方式,放在<plugins></plugins>中间即可) <plugin> <groupId>org.mybatis.generator</groupId> <artifac
阅读全文
摘要:一、问题描述 使用mybatis的项目在本地可以正常运行,但当使用maven或Jenkins打包部署到服务器上时出现了绑定错误,异常信息为: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
阅读全文
摘要:一、问题情况: IntelliJ IDEA 控制台输出中文乱码部分如图所示: 找到intellij idea的file settings Editor FileEncodings的GlobalEncoding和ProjectEncoding和Default encoding for properti
阅读全文
摘要:总是出现Error:Maven Resources Compiler: Maven project configuration required for module '项目名' isn't available. Compilation of Maven projects is supported
阅读全文
摘要:几天晚上遇到的奇怪的问题 传入的参数名一直没有变 但是从mapper到xml似乎有一个找不到参数的报错,实际上只要在Mapper接口形参前加“@Param(“形参名称”)”就可以了
阅读全文
摘要:isNotEmpty(str)等价于 str != null && str.length > 0 isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length > 0 同理 isEmpty 等价于 str == null || str.length == 0 isBlank 等价于 str == null || s...
阅读全文
摘要:一、对List的遍历有三种方式 第一种: 这种方式在循环执行过程中会进行数据锁定, 性能稍差, 同时,如果你想在寻欢过程中去掉某个元素,只能调用it.remove方法, 不能使用list.remove方法, 否则一定出现并发访问的错误. 第二种: 内部调用第一种, 换汤不换药, 因此比Iterato
阅读全文
摘要:1、将逗号分隔的字符串转换为List 2、将List转换为逗号分隔的字符串 (1) 利用Guava的Joiner (2)利用Apache Commons的StringUtils
阅读全文

浙公网安备 33010602011771号