08 2023 档案
摘要:-- 示例表: CREATE TABLE `t1` ( `id` int(11) NOT NULL AUTO_INCREMENT, `a` int(11) DEFAULT NULL, `b` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_a`
阅读全文
摘要:Navicat 常用快捷键 Shift + Home 光标 ->当前行行首 单行选中内容 Shift+End 光标 ->当前行行尾 Ctrl + R 运行已选择的 运行已选择的 Ctrl + Shift + R Ctrl + / 注释sql语句 注释 Ctrl+D 复制当前行 Ctrl + l 删除
阅读全文
摘要:使用上一篇的表并插入测试数据 #‐‐ 插入一些示例数据 drop procedure if exists insert_emp; delimiter ;; create procedure insert_emp() begin declare i int; set i=1; while(i<=100
阅读全文
摘要:测试建表 CREATE TABLE `employees` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(24) NOT NULL DEFAULT '' COMMENT '姓名', `age` int(11) NOT NULL DEFA
阅读全文
摘要:创建表数据: #创建actor表 DROP TABLE IF EXISTS `actor`; CREATE TABLE `actor` ( `id` int(11) NOT NULL, `name` varchar(45) DEFAULT NULL, `update_time` datetime D
阅读全文
摘要:索引的本质 B-Tree结构 B+Tree结构 Hash结构 MyISAM存储引擎索引实现 innodb存储引擎实现 innodb引擎生成两个文件,将索引文件和数据文件都放在的.ibd文件下(这就是聚集索引) myisam引擎生成三个文件,将索引和数据分开保存分别在 .MYD .MYI 文件下(这就
阅读全文
摘要:同为原型bean情况下的循环依赖,例如: @Component @Scope("prototype") //原型bean (多例)情况 public class ServletA { @Autowired ServletB servletB; @Override public String toSt
阅读全文
摘要:自定义start启动器的简单流程 pom文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XML
阅读全文
摘要:1.嵌入式Servlet容器配置修改 1.通过全局配置文件修改 可以通过server.xxx 来进行web服务配置, 没有带服务器名称的则是通用配置 通过带了具体的服务器名称则是单独对该服务器进行设置,比如 server.tomcat.xxx 就是专门针对tomcat的配置 2.通过WebServe
阅读全文
摘要:spring加载druid和mybatise 和这里的ssm 框架的配置比对:https://www.cnblogs.com/ruber/p/17582147.html pom依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http
阅读全文
摘要:WebMvcAutoConfiguration : webmvc自动化配置 MessageSourceAutoConfiguration :国际化自动配置 ErrorMvcAutoConfiguration:统一异常处理自动配置 官网解释:https://docs.spring.io/spring-
阅读全文
摘要:springmvc 接口的测试方式有四种方式分别是RestTemplate、MockMvc、 Swagger、postman 先把两个测试用的两个controler文件放这里 @RestController @Api(value="用户MyControler",tags={"都是测试接口"}) @R
阅读全文
摘要:pom配置如下: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope>
阅读全文