加载中
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
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
entity 批量修改数据

string sql = "UPDATE Blogs SET Url ='new url'"; var objectContext = ((IObjectContextAdapter)context).ObjectContext; objectContext.ExecuteStoreCommand(sql...

2012/03/13 16:56
21.5W

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部