12 2020 档案

摘要:编程取名规则 取名以代码自解释为第一位,不要在乎名称过长的问题 包名都小写,使用单数形式 类名使用UpperCamelCase风格,除DO / BO / DTO / VO / AO外 方法名、参数名、成员变量、局部变量都统一使用lowerCamelCase风格 常量命名全部大写,单词间用下划线隔开, 阅读全文
posted @ 2020-12-26 17:38 xdsax 阅读(36) 评论(0) 推荐(0)
摘要:需要的依赖 <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.8.3</version> </dependency> 常用方法 阅读全文
posted @ 2020-12-18 18:26 xdsax 阅读(52) 评论(0) 推荐(0)
摘要:// 方法定义 default V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) // java8之前。从map中根据key获取value操作可能会有下面的操作 Object key = map.ge 阅读全文
posted @ 2020-12-18 17:52 xdsax 阅读(305) 评论(0) 推荐(0)
摘要:Nacos是什么 Nacos是什么?好像没听过,不要紧。那Eureka听说过吧,在SpringCloud中做服务注册中心组件,类似的还有Zookeeper、Consul。 所以Nacos也是一个注册中心组件咯,当然是,不过它不仅仅是注册中心。 Nacos也是一个配置中心,比如SpringCloud中 阅读全文
posted @ 2020-12-18 14:59 xdsax 阅读(386) 评论(0) 推荐(0)
摘要:使用Typora撰写博客并发布到博客园 下载并安装Typora 下载地址:https://typora.io/ 下载并安装dotnet-sdk 下载地址:https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install 确认 阅读全文
posted @ 2020-12-18 09:36 xdsax 阅读(126) 评论(0) 推荐(0)
摘要:hystrix的超时时间 hystrix.command.default.execution.timeout.enabled=truehystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=10000 ribb 阅读全文
posted @ 2020-12-17 14:03 xdsax 阅读(60) 评论(0) 推荐(0)
摘要:父子工程,如果子模块不依赖任何兄弟模块,可以直接install 如果子模块依赖了兄弟模块,兄弟模块只有pom版本约束,不需要install父pom,需要install兄弟模块和父模块,才能将子模块install成功 阅读全文
posted @ 2020-12-16 19:53 xdsax 阅读(41) 评论(0) 推荐(0)
摘要:1. 前言 本文期望不断的来将Collectors中常用的方法进行归纳整理,方便学习,回顾。 2. Collectors 的作用 Collectors 是 Java 8 加入的操作类,位于 java.util.stream 包下。它会根据不同的策略将元素收集归纳起来,比如最简单常用的是将元素装入Ma 阅读全文
posted @ 2020-12-15 09:54 xdsax 阅读(79) 评论(0) 推荐(0)
摘要:nametypedescription Consumer Consumer< T > 接收T对象,不返回值 Predicate Predicate< T > 接收T对象并返回boolean Function Function< T, R > 接收T对象,返回R对象 Supplier Supplier 阅读全文
posted @ 2020-12-15 08:31 xdsax 阅读(10) 评论(0) 推荐(0)
摘要:当@EnableConfigurationProperties注解应用到你的@Configuration时, 任何被@ConfigurationProperties注解的beans将自动被Environment属性配置。 这种风格的配置特别适合与SpringApplication的外部YAML配置进 阅读全文
posted @ 2020-12-14 10:15 xdsax 阅读(73) 评论(0) 推荐(0)
摘要:javax.validation.constraints常用注解: @Null 被注释的元素必须为 null @NotNull 被注释的元素必须不为 null @AssertTrue 被注释的元素必须为 true @AssertFalse 被注释的元素必须为 false @Min(value) 被注 阅读全文
posted @ 2020-12-13 10:41 xdsax 阅读(32) 评论(0) 推荐(0)
摘要:post请求提交json数据到后端 阅读全文
posted @ 2020-12-13 10:17 xdsax 阅读(9) 评论(0) 推荐(0)
摘要:有时我们在使用 git clone 或者 go get 的时候 会遇到这个报错: 只需要设置Git忽略ssl证书错误即可,使用下面的命令:git config --global http.sslVerify "false"再次clone。 阅读全文
posted @ 2020-12-13 09:52 xdsax 阅读(640) 评论(0) 推荐(0)
摘要:maven optional可选依赖 应用场景:projectA 依赖projectB, projectB 依赖projectC时 <dependency> <groupId>com.itear.projectC</groupId> <artifactId>projectC</artifactId> 阅读全文
posted @ 2020-12-11 17:19 xdsax 阅读(220) 评论(0) 推荐(0)
摘要:混入: 什么可以被混入? 混入一个对象,对象中可以有方法,属性,有钩子函数 冲突处理 方法名字相同时取组件的方法,不冲突合并在一起 data中的属性名相同时取组件属性,不冲突时合并在一起 钩子函数相同都会调用,优先混入中钩子,不冲突时合并在一起 阅读全文
posted @ 2020-12-10 14:32 xdsax 阅读(9) 评论(0) 推荐(0)
摘要:// 日期生成和格式化String date = DateUtil.format(DateUtil.date(), "yyyyMMdd"); 阅读全文
posted @ 2020-12-09 13:28 xdsax 阅读(11) 评论(0) 推荐(0)
摘要:前言 lombok的注解都是基于编译期。 @UtilityClass 编译后添加私有无参构造方法并在方法中抛出异常 private A() { throw new UnsupportedOperationException("This is a utility class and cannot be 阅读全文
posted @ 2020-12-09 12:46 xdsax 阅读(111) 评论(0) 推荐(0)
摘要:使用一个父标签包起来需要覆盖的样式标签 <div class="container-member"> <div> <style> .container-member .avue-crud__pagination { position: unset !important; height: unset 阅读全文
posted @ 2020-12-04 11:32 xdsax 阅读(422) 评论(0) 推荐(0)