- 博客(12)
- 收藏
- 关注
原创 【MongoDB】集合、文档、索引增删改查 语法
一些操作MongoDB语法的学习分享,希望对你有所帮助。集合创建集合db.createCollection('集合名称');删除集合db.'集合名称'.drop();文档插入文档插入单条 db.collection.insertOne()db.user.insertOne( { user_name:'张三', age:NumberLong(18), sex:NumberInt(1), deposit:7777777
2022-04-02 17:26:53
872
2
原创 【MYSQL】字符串数据拆分转多行
原数据:拆分转多行后效果:执行SQL:SELECT SUBSTRING_INDEX( SUBSTRING_INDEX( 拆分字段, ',', T2.help_topic_id + 1 )=, ',', - 1 ) AS cloumn_name FROM ( 数据 ) T1JOIN mysql.help_topic T1 ON T1.help_topic_id < ( LENGTH( 拆分字段 ) - LENGTH( REPLACE ( 拆分字段, ',', '' )) + .
2021-09-29 18:18:52
1605
2
原创 【JAVA】Mybatis Mapper.xml if标签判读需注意的问题!
1、字符串判断:需判断null及空字符串2、数字类型判断,只使用null的判断,而不适用字符串的判断,因为空字符串会认为是默认03、字符串比较数字字符串时,需要比较toString,否则会报NumberFormatException...
2021-09-07 17:25:41
2283
原创 【JAVA】easyExcel - web实现 (文件路径导入、数据库数据导出并保存至服务器TOMCAT)
官网(旧)https://alibaba-easyexcel.github.io/index.html语雀官网地址https://www.yuque.com/easyexcel/doc/easyexcelgithub仓库地址https://github.com/alibaba/easyexcel实现MAVEN依赖<!-- https://mvnrepository.com/artifact/com.alibaba/easyexcel -->&l..
2021-07-16 16:17:04
1934
2
原创 【JAVA】JAVA_STREAM
一:stream 重组新集合List<Long> idList = iifList.stream().map(InventoryInoutFinance::getId).collect(Collectors.toList());二:stream与外部常量交互public static void main(String[] args) { List<Integer> list1 = Lists.newArrayList(); list1.add(1);
2021-06-24 11:46:57
697
原创 【IDEA】idea 优化设置
一、查看本地代码历史二、快速找到Controller方法ctrl+alt+shift+n三、主题设置Appearance&Behavior -> Appearance四、设置鼠标悬浮提示Editor->General五、显示方法分隔线Editor->General ->AppearanceShow method separators 勾选六、忽略大小写提示Editor->General ->Cod
2021-06-24 10:55:26
643
原创 【IDEA】实用插件
idea开发工具1、lomboklombok2、阿里编码规范Alibaba Java Coding Guidelines3、驼峰转换CamelCase4、翻译插件Translation5、mybatis-plus(mapper小鸟跳转插件)MyBatisCodeHelperPro(
2021-06-24 10:35:49
464
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人