加载中
k8s kubernetes 里 ping 不通的问题

container 里面 ping 不通, 需要设置upstreamNameservers 在Ubuntul里,需要手动修改/etc/resolv.conf 修改为可用的dns # Dynamic resolv.conf(5) file for glibc resolver(3) generated b...

k8s kubernetes 里 ping 不通的问题

container 里面 ping 不通, 需要设置upstreamNameservers 在Ubuntul里,需要手动修改/etc/resolv.conf 修改为可用的dns # Dynamic resolv.conf(5) file for glibc resolver(3) generated b...

docker根据name过滤container

docker ps -a --no-trunc --filter name=k8s_POD 批量删除: docker stop $( docker ps -a --no-trunc --filter name=k8s_POD )......

2018/07/06 15:55
349
spring boot mongodb config

@Configuration class SpringMongoConfig { @Value("\${spring.data.mongodb.host}") private val host: String? = null @Value("\${spring.data.mongodb.port}") private v...

2018/04/09 11:37
1K
docker 安装 portainer

创建数据卷: docker volume create portainer_data 启动镜像: docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer...

2018/03/30 17:28
195
jenkins docker

jenkins pre steps: execute shell: export PROCESS=$(docker ps -qa --filter name=PROJECT-v2) if [[ $PROCESS ]]; then docker stop $PROCESS docker rm $PROCESS else echo "none" fi...

kotlin delegated class and property

open class BusinessObject( private val map: Map<String, Any?> = mutableMapOf() ) : Map<String, Any?> by map { val id: Int? by lazy { map["id"]?.let { it as Int } } }...

2017/09/29 14:42
69
Jenkins start windows jar

cd target/ @echo off taskkill /im javaw.exe /F start /B javaw -cp "xxx.jar;libs/*" com.xxx.Main web=true exit 0 @echo on...

2017/08/18 11:16
260
log4j multiple logFactory/logRepository

多个log4j实例: public class DefaultCoreLogRepository implements InitializingBean { @Autowired private ConfigService configService; private LoggerRepository reposi...

2017/06/12 17:37
154
spring aop

spring aop performance check

2017/05/25 14:03
78
spring context 扫描自定义注解并注入到application context

ClassPathScanningCandidateComponentProvider scanner = new ClassPathScanningCandidateComponentProvider(false); scanner.addIncludeFilter(new AnnotationTypeFilter(type)); ...

2017/05/17 16:37
1.2K
run jar in console

1. 切换到jar包所在的目录: cd .. 2. 将依赖的第三方jar包复制到lib目录; 3. 将resources文件夹复制到jar包所在的目录; 4. 命令行运行: java -cp garbage-maker-1.0.0.jar;lib/* com.*.M...

2017/03/13 10:41
35

没有更多内容

加载失败,请刷新页面

返回顶部
顶部