加载中
docker根据name过滤container

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

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
375
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
152
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
72
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
87
spring boot set application.properties from file

import datamaker.task.utils.ConfigUtils; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.sprin...

log4j multiple logFactory/logRepository

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

2017/06/12 17:37
133
spring aop

spring aop performance check

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

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

2017/05/17 16:37
598

没有更多内容

加载失败,请刷新页面

返回顶部
顶部