- 博客(19)
- 资源 (24)
- 收藏
- 关注
原创 Spring Boot @Import
SpringBoot 提供了 三种使用 @Import 将 类实例注入至 Spring IOC Container中 的实例。1:直接注入@Component@Import({Customer.class,Broker.class})/** *使用Import 将指定的类的实例注入至Spring 容器中 */public class ImportDirect {}2:实现 ImportBeanDefinitionRegistrar 接口 注入/** * regis.
2021-01-16 19:05:33 136
原创 Spring Boot 概览
1:概览2:常用注解字段 说明 @ComponentScan 自动扫描组件,可自发配置一些Bean @Configuration 等同于 spring 的 XML 配置文件 @EnableAutoConfiguration 根据jar依赖自动配置Spring应用 @SpringBootApplication 给springBoot自动进行必要的配置(@Configuration ,@EnableAutoConfiguration 和 @Comp.
2021-01-16 18:58:56 98
原创 阿里巴巴 Java 开发手册 Java 开发手册(1.0.1)
一、编程规约(一) 命名规约 【强制】 代码中的命名均不能以下划线或美元符号开始,也不能以下划线或美元符号结束。 反例: _name / __name / $Object / name_ / name$ / Object$ 【强制】 代码中的命名严禁使用拼音与英文混合的方式,更不允许直接使用中文的方式。 说明:正确的英文拼写和语法可以让阅读者易于理解,避免歧义。注意,即使纯拼音命名方式 也要避免采用。 反例: DaZhePromotion [打折] / getPingfenB...
2020-11-16 17:53:46 360
原创 Effect Java
1:静态工厂方法代替构造器2:遇到多个构造器参数时要考虑构建器public class NutritionFacts { private final int servingSize; private final int servings; private final int calories; private final int fat; private final int sodium; private final int carbohydra
2020-09-25 23:27:13 115
原创 Cache-Control
1:Cache-Control 流程2:不同节点配置1)spring boot ymlspring:resources: static-locations: classpath:/static/,classpath:/views/,classpath:/templates/ chain: strategy: #MD5实现 content: enabled: true paths: /**...
2020-09-20 10:32:12 293 1
原创 activiti使用
1:配置文件方式加载数据库配置activiti.cfg.xml<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.o...
2020-08-08 17:53:50 116
原创 MYSQL常用工具
1:清空库select CONCAT('TRUNCATE TABLE ',table_name,';') from information_schema.tables where TABLE_SCHEMA = 'db1';
2020-08-08 11:58:20 95
原创 idea技巧
IDEA: Call Hierarchy查看某个方法、字段可能被用在哪些地方IDEA的call hierarchy是放在Navigate > call hierarchy下的
2020-08-04 08:55:22 220
原创 ElementType
java中元注解:@Retention @Target @Document @Inherited;@Retention:注解的保留位置 @Retention(RetentionPolicy.SOURCE)//注解仅存在于源码中,在class字节码文件中不包含@Retention(RetentionPolicy.CLASS)// 默认的保留策略,注解会在class字节码文件中存在,但运行时无法获得,@Retention(RetentionPolicy.RUNT...
2020-08-04 08:32:07 467
原创 activiti
官网:参考资料:https://juejin.im/post/6844903577757057038http://www.mossle.com/docs/activiti/index.html参考代码:https://gitee.com/shenzhanwang/Spring-activiti
2020-08-03 23:10:04 111
原创 @Timed in any Spring-managed bean
问题描述:@Timed 仅在controller中工作,普通方法无法生效解决办法:https://github.com/micrometer-metrics/micrometer/issues/361https://github.com/izeye/sample-micrometer-spring-boot/tree/timed-annotationhttp://www.cocoachina.com/articles/94294...
2020-07-27 23:23:08 415
原创 prometheus
https://prometheus.io/docs/prometheus/latest/querying/functions/
2020-07-23 09:11:49 90
原创 Elasticsearch优化
背景:近期使用ES摸索到一些优化方式1:API使用,不需要打分推荐使用filterQuery context 查询上下文这种语句在执行时既要计算文档是否匹配,还要计算文档相对于其他文档的匹配度有多高,匹配度越高,_score分数就越高Filter context 过滤上下文过滤上下文中的语句在执行时只关心文档是否和查询匹配,不会计算匹配度,也就是得分。 query参数表...
2020-04-14 00:18:34 857
原创 Elasticsearch常用文档
Elasticsearch权威指南(中文版)https://es.xiaoleilu.com/010_Intro/30_Tutorial_Search.html
2020-04-02 12:41:26 66
原创 百分位数
百分位数百分位数度量的是占总数特定百分比的观察点的值。从本质上讲,它们会展示数据集的分布。例如,我们在上面看到的中间数是50百分位数(或p50)。对于中间数(已排好序的数据)来说,50%的值低于它,50%高于它。对于指标而言,百分位数很有意义,因为它们可以清晰地展现数值的分布。例如,一个事务的99百分位数为10毫秒,这很容易理解:99%的事务在10毫秒或更短时间内完成,1%的事务处理时间超过10...
2020-03-28 16:57:39 4724
转载 Spring声明式事务配置管理方法
环境配置项目使用SSH架构,现在要添加Spring事务管理功能,针对当前环境,只需要添加Spring 2.0 AOP类库即可。添加方法:点击项目右键->Build Path->Add librarys: 打开
2013-11-15 13:53:18 457
转载 SQL知识点总结
我觉得对于SQL语句,清楚知道它执行的顺序,对于写sql语句非常重要 sql查询中用到的关键词主要包含六个,并且他们的书定顺序依次为 Select--From--Where--Group by--Having--Order by但这几关键词的执行顺序与sql语句的书写顺序并不是一样的,而是按照下面的顺序来执行
2013-11-11 22:30:57 506
Java与模式 源码部分
2013-11-29
Tomcat系统架构与设计模式
2013-09-02
jaxb-api-2.2 jaxb-impl
2013-05-08
Struts2教程,chm格式
2009-12-18
VC6.0 +SQL Server 毕业设计论文 进销存管理系统
2009-05-29
Along with computer's development and the popularization, Blog obtained the enormous development. Blog is Weblog (network diary) abbreviation. After Blog is E-mail, BBS, the ICQ fourth network exchange way. It take has the influence news, the news
2009-05-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人