Code Monkey home page Code Monkey logo

MyBatis -tree

学习MyBatis Tree http://www.spring4all.com/article/627

测试依赖SQL 表

CREATE TABLE node ( id int(11) unsigned NOT NULL AUTO_INCREMENT, name varchar(32) NOT NULL, parent_id int(11) unsigned NOT NULL, PRIMARY KEY (id), KEY parent_id (parent_id) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='节点表'

测试依赖SQL 数据

INSERT INTO node (name, parent_id) VALUES ('一级节点A', 0); INSERT INTO node (name, parent_id) VALUES ('一级节点B', 0); INSERT INTO node (name, parent_id) VALUES ('一级节点C', 0); INSERT INTO node (name, parent_id) VALUES ('二级节点AA', 1); INSERT INTO node (name, parent_id) VALUES ('二级节点aa', 1); INSERT INTO node (name, parent_id) VALUES ('二级节点BB', 2); INSERT INTO node (name, parent_id) VALUES ('三级级节点AAA', 4); INSERT INTO node (name, parent_id) VALUES ('三级级节点aaa', 4); INSERT INTO node (name, parent_id) VALUES ('三级级节点BBB', 6);

Intellij IDEA 小技巧+快捷键

###加入断点 Ctrl+F8 ###条件断点 Alt+Shift+F8 ###断点变量调试 Ctrl+U ###断点运行至光标位置 Ctrl+R ###断点时更改变量值 在Debugger窗口Variales操作栏选中要更改的变量+F2 ###列操作 Ctrl+Alt+Y / Alt+Y ###重构属性名称 Alt+Shift+R ###查找类属性,方法/变量 Alt+Ctrl+Shift+N ###Bookmark标记 Alt+Ctrl+Shift+F11 / Ctrl+Shift+F11 ###查找动作或者选项 Ctrl+Shift+A ###查看项目结构 Alt+Ctrl+Shift+S ###当前文件夹下新建文件 Ctrl+Alt+Insert ###当前文件重构 Alt+Ctrl+Shift+T ###移动当前文件 Alt+Shift+V ###获取最近剪切板的内容 Ctrl+Shift+V ###复制当前文件 Ctrl+Alt+C ###复制当前文件的绝对路径 Ctrl+Shift+C ###复制光标所在文件的相对路径:行号/相对路径#属性名 Alt+Ctrl+Shift+C ###构建项目 Ctrl+F9 ###查看文件大纲 包括maven依赖,java结构等(注:很消耗CPU性能) Alt+Ctrl+Shift+U ###查看java类继承结构 F4 ###查看方法调用链 可以向上向下查看 Ctrl+Alt+H ###重新编译java文件 Ctrl+Shift+F9 ###选择启动 Alt+Shift+F9 ###启动main Ctrl+Shift+F10 ###Debug启动 Shift+F9 ###查看快捷模板缩写 Alt+Ctrl+Shift+J ###查找本地历史记录 Ctrl+Shift+A 输入 local History ###定义缩写快捷模板 Ctrl+Shift+A 输入 Live Templates

zsg's Projects

new-idea-server icon new-idea-server

idea-license-server被封了,以后资源我都上传到百度云上,这里就不上传资源了,只做技术解答

rap2-delos icon rap2-delos

阿里妈妈前端团队出品的开源接口管理工具RAP第二代

sqlite-to-mysql icon sqlite-to-mysql

Script to convert and add sqlite3 database into a mysql/mariadb database

stratumproxy icon stratumproxy

以太坊/ETC矿池代理,可以自定义抽水地址和比例,go语言编写,性能极高,Stratum 协议

tale icon tale

🦄 Best beautiful java blog, worth a try

xbin-store-cloud icon xbin-store-cloud

模仿国内知名B2C网站,实现的一个分布式B2C商城 使用Spring Cloud 使用dubbox版本请查看

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.