- 博客(18)
- 问答 (5)
- 收藏
- 关注
原创 Kibana should not be run as root
1、可以在启动时增加参数 --allow-root2、docker-compose 中添加entrypoint: ["./bin/kibana", "--allow-root"] 链接如下:Running Kibana in Docker image gives Non-Root error - Stack Overflow
2022-03-21 13:51:52
2810
原创 spring boot、docker中文乱码
现象:采用jenkins+k8s+docker部署服务,web服务收到POST内容后,存储中文乱码,后打印log也乱码,确定服务用的是iso-8859-1编码集,手动设置发送、接收为utf-8也不行,设置配置文件也不行,设置WebMvcConfigurerAdapter为utf-8也不行。解决:发现是docker image用的有问题,换一个image就好了,以上解决都不要...
2019-11-15 10:11:47
2293
转载 spring boot 多文件上传,OpenFeign文件传输
1、spring boot多文件传输与bean一起传输使用@RequestPart可以看一下 这位老哥的方法很优雅(1)spring 部分代码是直接搬的@PostMapping("upload")public ImageInfo upload(@RequestPart("file") MultipartFile file,@RequestPart("file1") Multip...
2019-08-22 17:14:02
819
原创 Jenkins build失败总结
1、提示 自定义connands xxx.jar 找不到,重新构建xxx 项目2、没有target/surefire-reports/**/*.xml 文件夹原因是项目中没有test目录,最好在test里面有一个简单的junit...
2019-06-19 10:07:20
4663
转载 spring boot @RefreshScope @PostConstruct refresh 配置文件刷新不及时
由于util类中需要使用application.properties中数据@Value("${acpsdk.sign}")private String sign; private static String signStatic; @PostConstructpublic void setSignStatic() { signStatic= this.si...
2019-06-06 13:44:26
4579
1
转载 ubuntu在没有vi情况下,更新源的方法
mv /etc/apt/sources.list /etc/apt/sources.list.bak echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >/etc/apt/sources.list echo "deb http://mirrors.163.com/debian/ jessi...
2018-06-06 20:05:26
3795
原创 docker win7加速地址
https://www.daocloud.io/mirror#accelerator-docDocker Toolbox :window7加速http://guide.daocloud.io/dcs/docker-9153151.htmldocker-machine ssh defaultsudo sed -i "s|EXTRA_ARGS='|EXTRA_ARGS='--registry-mir...
2018-06-05 21:12:20
721
转载 Hystrix 参数详解
Hystrix 参数详解hystrix.command.default和hystrix.threadpool.default中的default为默认CommandKeyCommand PropertiesExecution相关的属性的配置:hystrix.command.default.execution.isolation.strategy 隔离策略,默认是Thread, 可选Thread|Se...
2018-05-31 22:38:20
854
原创 linux常用命令
删除命令 rm -rf 删除路径下指定类型文件rm -rf /xx/xx/x*查看文件内容 cattail -n 10000 -f xxx 显示文件 xxx 的后50行内容并在文件内容增加后,自动显示新增的文件内容。复制put -r dir查看java进程ps -ef | grep javakill -9 pinctrl+c退出jar执行chmod 777 设置最高权限永久打开端口7005fi...
2018-05-21 15:22:42
133
原创 spring boot 使用Swagger2
pom <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.6.1</version> </dependenc
2018-05-21 14:51:28
183
原创 mybatis tkMapper使用
----------------------------------------------------------------------------------------------------------------------------------一、设置TkMapper单独放在一个包:这个包只有TkMapper一个文件import tk.mybatis.mapper.common.M...
2018-05-21 12:02:18
18309
3
原创 maven打包总结
1.没有定义versionFailed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project service-deal: An Ant BuildException has occured: Warning: Could not find file D:\service-d...
2018-05-21 11:44:28
741
原创 spring boot + spring batch 读取数据库文件
----------------------------------------------------------------------------------------------------------------------------------一、配置JOBimport javax.sql.DataSource;import org.springframework.batch.co...
2018-05-21 11:26:31
6655
原创 maven手动添加orcalejar
oracle没有授权maven所以在maven上无法下到oraclejar包,需要手动添加cd进入 ojdbc14.jar 目录mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.3.0 -Dpackaging=jar -Dfile=ojdbc14.jar...
2018-03-31 21:53:50
235
原创 windows下tomcat部署http和https
使用https需要ssl文件可以去阿里或腾讯服务器哪里去申请免费的,拿到ssl文件找到tomcat/conf/server.xml修改 connectionTimeout="20000" redirectPort="443" URIEncoding="UTF-8" /> -->
2018-01-06 22:59:00
4830
空空如也
docker 启动镜像centOS6.8 为镜像设置ssh连接
2018-06-11
knockout的input触发事件
2016-12-19
求大神们帮帮忙,滚动条设置宽度
2016-05-23
求大神们knocketout相关问题,
2016-05-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人