上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页
摘要: 转载:https://blog.csdn.net/xielong0509/article/details/83722153 .html()用为读取和修改元素的HTML标签 对应js中的innerHTML。html()方法使用在多个元素上时,只读取第一个元素。 浏览器会识别插入进去的标签 .text( 阅读全文
posted @ 2020-07-04 16:33 64Byte 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/zhuwentao2150/article/details/51713565 数组转换成list集合(推荐asList()) 方法一:通过add把数组中的数据循环添加到List集合中 List<String> mlist = new ArrayLis 阅读全文
posted @ 2020-07-04 16:18 64Byte 阅读(442) 评论(0) 推荐(0) 编辑
摘要: dao、pojo、service、controller都给我自己去编写完成! AutoGenerator 是 MyBatis-Plus 的代码生成器,通过 AutoGenerator 可以快速生成 Entity、 Mapper、Mapper XML、Service、Controller 等各个模块的 阅读全文
posted @ 2020-07-04 15:27 64Byte 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Users.java实体类 @Data @AllArgsConstructor @NoArgsConstructor //对应数据库表中的自增系列名 @KeySequence(value = "seqhouse" ) public class Users implements Serializabl 阅读全文
posted @ 2020-07-04 15:23 64Byte 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 我们写一些复杂的sql就可以使用它来替代! 1、测试一: 查询name不为空的用户,并且邮箱不为空的用户,年龄大于等于12 @Test void contextLoads() { // 查询name不为空的用户,并且邮箱不为空的用户,年龄大于等于12 QueryWrapper<User> wrapp 阅读全文
posted @ 2020-07-04 15:00 64Byte 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 官网:https://mp.baomidou.com/ MyBatis-Plus(简称 MP)是一个 MyBatis 的增强工具,在 MyBatis 的基础上只做增强不做改变,为简化开发、提高效率而生。 1、加载依赖 <!--mybatisPlus --> <dependency> <groupId 阅读全文
posted @ 2020-07-04 14:50 64Byte 阅读(2665) 评论(0) 推荐(0) 编辑
摘要: 项目开发中的dev、test、prod是什么意思 开发环境(dev):开发环境是程序猿们专门用于开发的服务器,配置可以比较随意,为了开发调试方便,一般打开全部错误报告。 测试环境(test):一般是克隆一份生产环境的配置,一个程序在测试环境工作不正常,那么肯定不能把它发布到生产机上。 生产环境(pr 阅读全文
posted @ 2020-07-04 14:07 64Byte 阅读(1875) 评论(0) 推荐(0) 编辑
摘要: 1、热部署 修改完代码,想让SpringBoot自动加载我们修改的内容(pom.xml添加依赖) <!-- spring-boot的开发工具,可以在修改代码时,不需要手动重启服务器 --> <dependency> <groupId>org.springframework.boot</groupId 阅读全文
posted @ 2020-07-04 11:45 64Byte 阅读(1438) 评论(0) 推荐(0) 编辑
摘要: SpringBoot启动类: @SpringBootApplication public class SpringBootDemo1Application { public static void main(String[] args) { SpringApplication.run(SpringB 阅读全文
posted @ 2020-07-04 10:21 64Byte 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: Spring-tool-suite的下载:https://spring.io/tools SpringBoot简介 SpringBoot是整个Spring技术栈的整合,来简化Spring应用开发,约定大于配置,去繁从简,just run 就能创建一个独立的,产品级别的应用。 解决: "Spring全 阅读全文
posted @ 2020-07-03 20:40 64Byte 阅读(236) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页