上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 37 下一页
摘要: @RunWith(SpringRunner.class) @SpringBootTest(classes = DemoApplication.class) public class MybatisTest { @Autowired UserDao userDao; @Test public void 阅读全文
posted @ 2021-09-08 16:35 howhy 阅读(214) 评论(0) 推荐(0) 编辑
摘要: @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface MyAnno { String className(); String methodName(); } @MyAnno(className 阅读全文
posted @ 2021-08-31 17:47 howhy 阅读(13) 评论(0) 推荐(0) 编辑
摘要: package com.howhy.demo; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; impo 阅读全文
posted @ 2021-08-31 17:02 howhy 阅读(19) 评论(0) 推荐(0) 编辑
摘要: package com.test; import lombok.SneakyThrows; import lombok.Synchronized; public class Ticket implements Runnable { private volatile int ticketNums=10 阅读全文
posted @ 2021-08-30 11:46 howhy 阅读(25) 评论(0) 推荐(0) 编辑
摘要: package com.test; public class MyThread implements Runnable {//extends Thread 实现Runnable 或继承Thread @Override public void run() { System.out.println("r 阅读全文
posted @ 2021-08-30 11:05 howhy 阅读(19) 评论(0) 推荐(0) 编辑
摘要: package com.test; import com.czbsit.web.result.CodeMsg; import java.util.ArrayList; import java.util.List; public class Response<T> { private int code 阅读全文
posted @ 2021-08-25 12:04 howhy 阅读(36) 评论(0) 推荐(0) 编辑
摘要: class MyClass { public static void main(String[] args){ //整形 byte(1) short(2) int(4) long(8) //浮点 float(4) double(8) //字符 char(2) //布尔 boolean(1) //变量 阅读全文
posted @ 2021-08-18 16:20 howhy 阅读(39) 评论(0) 推荐(0) 编辑
摘要: git init 初始化一个git仓库 git add 文件名 ##将文件提交到暂存区(git status 文件从红色变成绿色) git commit -m "注释" ##将文件提交到git仓库 git checkout 文件名 (将git status显示红色的文件恢复到改之前的文件(未执行gi 阅读全文
posted @ 2021-08-16 16:14 howhy 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 进程:是操作系统进行资源分配的最小单元 线程:是操作系统进行任务分配的最小单元, synchronized 加锁,volatile 1、保证变量在线程可见性 ,适合一个线程写 多个线程读的情况 2、不能保证线程原子性 3、防止重排序 java的加锁就是在对象的markword头文件中记录一个锁状态, 阅读全文
posted @ 2021-08-02 18:20 howhy 阅读(29) 评论(0) 推荐(0) 编辑
摘要: mybatis 文档:https://mybatis.org/mybatis-3/zh/ ##maven:pom.xml <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <vers 阅读全文
posted @ 2021-07-07 10:50 howhy 阅读(42) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 37 下一页