摘要:
1.ES安装 一定要关闭防火墙! 测试访问: 注意:-p 5601:5601 是kibana的端口地址 (我这里kibana的container共用elasticsearch的网络,所以这样设置。 补充: 如果运行时候报错: docker run -it --name elasticsearch - 阅读全文
摘要:
点击左侧这个标志。 阅读全文
摘要:
报错: java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the 阅读全文
摘要:
Spring Bean生命周期的构成 Bean的完整生命周期经历了各种方法调用,这些方法可以划分为以下几类: 生命周期 创建 > 初始化 > 销毁 1. 实例化对象 2. setter注入,执行Bean的属性依赖注入 3. BeanNameAware的setBeanName(), 如果实现该接口,则 阅读全文
摘要:
前言: 主要了解的内容有如下几点: @Qualifier与@Primary注解的使用 Spring中ApplicationContext的作用 BeanFactory与ApplicationContext区别 AnnotationConfigApplicationContext启动原理分析 假设 I 阅读全文
摘要:
一些基础但是核心的知识总结: Spring Boot项目启动的时候需要加@Configuration、 @ComponentScan @Configuration + @Bean 把第三方jar包注入到容器中。 内部的直接 @Service @Controller等等之类配合 @ComponentS 阅读全文