摘要: 1.目录 2.PersonController package com.sk.controller; import com.sk.entity.Person; import com.sk.service.PersonService; import org.springframework.beans. 阅读全文
posted @ 2022-04-01 11:41 松松松松松柯 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 环境:win10 工具:idea 2021.3.2 tomcat:apache-tomcat-8.5.77 jdk: jdk-11.0.14 1.整体目录 2.HelloController @Controller @RequestMapping("/hi") public class HelloC 阅读全文
posted @ 2022-03-22 10:26 松松松松松柯 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1.死锁是什么? 死锁是指两个或两个以上的进程在执行过程中,由于竞争资源或者由于彼此通信而造成的一种阻塞的现象,若无外力作用,它们都将无法推进下去。此时称系统处于死锁状态或系统产生了死锁,这些永远在互相等待的进程称为死锁进程。 2.死锁形成条件 Ⅰ.互斥条件:进程要求对所分配的资源进行排它性控制,即 阅读全文
posted @ 2021-01-14 10:34 松松松松松柯 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1.创建流(并行流和顺序流) import java.util.ArrayList; import java.util.List; import java.util.stream.Stream; /** * Created by sk on 2021/1/13 */ public class Tes 阅读全文
posted @ 2021-01-13 15:59 松松松松松柯 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1.Student类 public class Student { private String name; private Integer age; public void setName(String name){ this.name = name; } public void setAge(I 阅读全文
posted @ 2021-01-13 14:30 松松松松松柯 阅读(1504) 评论(0) 推荐(0) 编辑
摘要: 1.递归实现代码 /** * Created by SK on 2021/1/11 * 递归方法 九九乘法表 * 1.自己调自己 * 2.临界 (个人理解 第一个值) * @author SK */ public class Recursion { public static void main(S 阅读全文
posted @ 2021-01-11 16:25 松松松松松柯 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1.main方法(filePath 是 要读取的文件的路径) public static void main(String[] args) throws IOException { String filePath = "C:\\Users\\admin\\Desktop\\1.xlsx"; List 阅读全文
posted @ 2021-01-08 17:06 松松松松松柯 阅读(692) 评论(0) 推荐(0) 编辑
摘要: select * from (select * from 表名 where 条件 order by 排序日期 desc) where rownum=1; select * from (select * from TABLE where STATE = 3 order by TIME desc) wh 阅读全文
posted @ 2020-11-03 09:36 松松松松松柯 阅读(5029) 评论(0) 推荐(1) 编辑
摘要: 1.依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId>dynamic-datasource-spring-boot-starter</artifactId> <version>2.5.6</version> </dependenc 阅读全文
posted @ 2020-09-22 11:50 松松松松松柯 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 事情是这样子的:额 org.springframework.web.bind.annotation idea运行时候找不到程序类包,明明jar包就在那里,但是就是会报错。 我的idea2020.1然后maven 3.6.3 引用大佬的话就是: 要把maven自己加的localRepository删掉 阅读全文
posted @ 2020-05-08 11:50 松松松松松柯 阅读(9863) 评论(0) 推荐(0) 编辑