上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 232 下一页
摘要: 1、问题描述 项目中使用了lombok,但是在idea编译过程是出现找不到符号。报错如下图所示: file @Data @ApiModel(value = "HeadTeacherVO", description = "设置班主任对象") public class HeadTeacherVO imp 阅读全文
posted @ 2020-12-19 00:07 牧之丨 阅读(2843) 评论(1) 推荐(1)
摘要: 用maven打成jar包后,Main.class.getClassLoader().getResource("")为null。 示例: public static void main(String[] args) { System.out.println(Main.class.getResource 阅读全文
posted @ 2020-12-18 23:44 牧之丨 阅读(813) 评论(0) 推荐(0)
摘要: yml:myProps: varmaplist: key11: - t1 - t2 - t3 key22: - t11 - t22 - t33 list: - topic1 - topic2 - topic3 maps: {key1: 'value1', key2: 'value2'} MyProp 阅读全文
posted @ 2020-12-18 14:37 牧之丨 阅读(1215) 评论(0) 推荐(0)
摘要: <plugin> <groupId>org.xolstice.maven.plugins</groupId> <artifactId>protobuf-maven-plugin</artifactId> <version>0.5.1</version> <configuration> <protoc 阅读全文
posted @ 2020-12-15 01:07 牧之丨 阅读(180) 评论(0) 推荐(0)
摘要: 在branch1开发,进行多个提交,这是切换到branch2,想把之前branch1分支提交的commit都【复制】过来,怎么办? 首先切换到branch1分支,然后查看提交历史记录,也可以用sourceTree查看,也可以用命令git log 例如我的git log 如下: commit1 xxx 阅读全文
posted @ 2020-12-14 20:04 牧之丨 阅读(2923) 评论(0) 推荐(0)
摘要: 1、首先需要编写自己需要的.proto文件,本文重点不在这里,.proto可以参考grpc官方例子 https://grpc.io/docs/quickstart/java.html 2、创建自己的Java工程(只要是maven工程就行),把.proto文件放到src/main/proto目录下面 阅读全文
posted @ 2020-12-14 20:00 牧之丨 阅读(591) 评论(0) 推荐(0)
摘要: 我们知道,受限于硬件、内存和性能,我们不可能无限制的创建任意数量的线程,因为每一台机器允许的最大线程是一个有界值。也就是说ThreadPoolExecutor管理的线程数量是有界的。线程池就是用这些有限个数的线程,去执行提交的任务。然而对于多用户、高并发的应用来说,提交的任务数量非常巨大,一定会比允 阅读全文
posted @ 2020-11-30 23:09 牧之丨 阅读(775) 评论(0) 推荐(0)
摘要: SynchronousQueue SynchronousQueue是无界的,是一种无缓冲的等待队列,但是由于该Queue本身的特性,在某次添加元素后必须等待其他线程取走后才能继续添加;可以认为SynchronousQueue是一个缓存值为1的阻塞队列,但是 isEmpty()方法永远返回是true, 阅读全文
posted @ 2020-11-30 20:08 牧之丨 阅读(385) 评论(0) 推荐(0)
摘要: 回车、换行、空格的ASCII码值 回车,ASCII码13换行,ASCII码10空格,ASCII码32Return = CR = 13 = '\x0d'NewLine = LF = 10 = '\x0a' ASCII码表 信 息在计算机上是用二进制表示的,这种表示法让人理解就很困难。因此计算机上都配有 阅读全文
posted @ 2020-11-23 21:57 牧之丨 阅读(4975) 评论(0) 推荐(0)
摘要: Spring Boot热部署 热部署的使用 引入依赖 <!-- spring boot热部署的依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artif 阅读全文
posted @ 2020-10-31 20:16 牧之丨 阅读(538) 评论(0) 推荐(0)
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 232 下一页