- 博客(7)
- 问答 (1)
- 收藏
- 关注
原创 springboot自动配置springMvc学习笔记
springboot帮我们自动配置springMvc时,只有项目中不存在WebMvcConfigurationSupport这个bean才可以.那么我们的项目中就不能出现@EnableWebMvc这个注解.为什么呢比如:因为这个注解中@Import({DelegatingWebMvcConfiguration.class})这个类.而DelegatingWebMvcConfiguration...
2020-02-23 19:32:21
174
原创 springboot starter组件开发的原理
springboot starter组件开发的原理就拿dubbo-springboot-starter组件举例子:在他的jar包的META-INF下有一个spring.factories文件.这个文件名和位置是固定的.因为springboot初始化时会通过spi找到这个文件进行读取.读取到org.springframework.boot.autoconfigure.EnableAutoCon...
2020-02-23 15:52:49
592
原创 Thread类的interrupted()方法
Thread类的interrupted()方法Thread类的interrupted()方法1,Thread类的interrupted方法是返回当前线程的被打断状态,同时清除打断状态我们可以看到这个方法是直接调用isInterrupted方法,传了一个参数为true,意思是返回当前线程被打断状态的同时,清除打断状态,将打断状态置为false;2,如果一个线程正在睡眠,被其他线程打断了(在其...
2020-01-19 10:31:55
4539
1
原创 docker安装elasticsearch-head 请求406错误解决
ElasticSearch-head 查询报 406错误码{“error”:“Content-Type header [application/x-www-form-urlencoded] is not supported”,“status”:406}解决方法:1、进入head安装目录;2、cd _site/3、编辑vendor.js 共有两处①. 6886行 contentTy...
2019-12-18 17:37:45
732
原创 docker容器启动了,但是无法访问解决办法
docker容器启动了,但是无法访问解决办法docker 镜像启动成功但是无法访问解决办法:vi /etc/sysctl.conf或者vi /usr/lib/sysctl.d/00-system.conf添加如下代码:net.ipv4.ip_forward=1重启network服务systemctl restart network查看是否修改成功sysctl net.ipv...
2019-12-18 17:24:26
12596
7
原创 spring中为什么实现了ApplicationContextWare这个接口就可以获取到spring的上下文
spring中为什么实现了ApplicationContextWare这个接口就可以获取到spring的上下文我们都知道在spring中我们的一个bean只要实现了ApplicationContextWare这个接口就可以通过覆写他的一个接口方法set进来spring的上下文,但是很少有人研究为什么就能设置进来.要研究这个问题,就要引出spring中的另外一个知识点,那就是BeanPostPr...
2019-01-26 21:49:03
1302
空空如也
Spring boot 中使用webservice的问题
2016-12-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅