- 博客(6)
- 收藏
- 关注
原创 Nacos + Spring Boot 2.7.x 注册成功服务列表没有显示
注意Nacos版本与Spring Boot版本有对应,否则将会出现服务注册成功,但是在Nacos服务列表显示不出来的情况。Nacos版本:2.2.0。
2023-03-29 16:08:32
1829
1
原创 Python多线程使用concurrent.futures.as_completed方法下的一个坑
在使用Python3.7的时候,将获取到的url放入到队列Queue中,如下:这里的content_list是爬取到的列表queue = Queue(list(content_list).__len__())然后使用线程池ThreadPoolExecutor的时候将队列放到任务中,如下:with ThreadPoolExecutor(max_workers=1) as execut...
2019-03-30 12:20:53
7526
原创 如何使用WebService服务端返回对象
这里简单的讲一下如何使用WebService服务端返回对象,先创建一个接口@WebService(name = "HelloWorld",targetNamespace = "http://example/")public interface HelloWorldInterfaces { @WebMethod Person getPerson(@WebParam(name...
2019-01-02 09:14:07
3800
原创 Linux下解决ElasticSearch跨域问题
在config/elasticsearch.yml配置文件最后添加: http.cors.enabled: true http.cors.allow-origin: /http?:\/\/192.168.3.74(:[0-9]+)?/
2018-12-29 16:14:31
652
原创 Web HttpServletRequest的getRequestURL方法获取不到https协议请求问题
需要再nginx里面配置好对应ssl以及把证书放到对应位置例如:listen 443; server_name xxx.xxxx.com; ssl on; root html; index index.html index.htm; ssl_certificate cert/123456xxxxxx.pem...
2018-12-29 16:11:06
4380
原创 socket.io 跨域问题,以及netty-socketio如何实现跨域
这里前端使用的是socket.io,后端是使用java的netty-socketio,这里是通过nginx设置头部来实现跨域,nginx实现cors需要使用nginx判断method是因为浏览器第一次会发起一个options来检查服务器是否支持跨域访问代码: if ($request_method = 'OPTIONS') {#注意 不需要添加Access-Control-Allow...
2018-12-29 16:07:58
10990
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人