上一页 1 ··· 121 122 123 124 125 126 127 128 129 ··· 232 下一页
摘要: pom build节点下面添加resource配置: [html] view plain copy <resources> <resource> <directory>src/main/resources/</directory> <filtering>true</filtering> <inclu 阅读全文
posted @ 2017-07-12 16:41 牧之丨 阅读(8827) 评论(0) 推荐(0)
摘要: 需求:由于最近开发clover项目 ,没有使用spring,更没有使用任何框架,而使用J2EE的web工程,所以连接ZK和MongoDB、Redis等服务器需用指定properties文件, 而目前公司又分各套环境(dev、test、product),所以希望打包的时候 根据profile id 来 阅读全文
posted @ 2017-07-12 16:40 牧之丨 阅读(1256) 评论(0) 推荐(0)
摘要: 本文演示如何使用Collections.frequency和Map来计算重复项出现的次数。(Collections.frequency在JDK 1.5版本以后支持) [java] view plain copy package com.qiyadeng.core; import java.util. 阅读全文
posted @ 2017-07-12 15:58 牧之丨 阅读(2763) 评论(0) 推荐(0)
摘要: https://yq.aliyun.com/articles/25530 摘要: 1. SpringApplication SpringApplication 类是启动 Spring Boot 应用的入口类,你可以创建一个包含 main() 方法的类,来运行 SpringApplication. 1 阅读全文
posted @ 2017-07-11 16:35 牧之丨 阅读(1683) 评论(0) 推荐(0)
摘要: 序言: maven 命令:clean package -Dmaven.test.skip=true -P product 1.命令很简单是:清class文件,打包构建,跳过测试,注意最后一个 -P product,-P maven 会激活项目下的pom.xml配置的<profiles>标签下id为p 阅读全文
posted @ 2017-07-11 16:34 牧之丨 阅读(568) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/he90227/article/details/52981747 摘要: spring Boot使用@Profile注解可以实现不同环境下配置参数的切换,任何@Component或@Configuration注解的类都可以使用@Profile注解。 例如: 阅读全文
posted @ 2017-07-11 16:30 牧之丨 阅读(3840) 评论(0) 推荐(0)
摘要: http://docs.spring.io/spring-boot/docs/1.2.3.RELEASE/reference/html/boot-features-external-config.html#boot-features-external-config-loading-yaml http 阅读全文
posted @ 2017-07-11 16:29 牧之丨 阅读(644) 评论(0) 推荐(0)
摘要: 前言 github: https://github.com/vergilyn/SpringBootDemo 说明:我代码的结构是用profile来区分/激活要加载的配置,从而在一个project中写各种spring boot的demo。所以很多时候可能在*Application.class中指定了特 阅读全文
posted @ 2017-07-11 16:26 牧之丨 阅读(6710) 评论(0) 推荐(0)
摘要: 一篇值得一看的博文,主要涉及处理maven工程中的resources的内容。转自:http://xigua366.iteye.com/blog/2080668 maven用可以利用如下配置进行资源过滤,pom.xml的配置如下: Xml代码 <build> <!-- 主资源目录 --> <resou 阅读全文
posted @ 2017-07-11 15:03 牧之丨 阅读(1334) 评论(0) 推荐(0)
摘要: No space left on device错误解决笔记 今天准备重启下数据库(linux oracle11g) conn /as sysdba; 出现这样的错误No space left on device 一看 没有足够的空间 郁闷! 看看空间大小 df -h 空间只用了10%不到呢。 重启计 阅读全文
posted @ 2017-07-11 09:42 牧之丨 阅读(6042) 评论(0) 推荐(0)
上一页 1 ··· 121 122 123 124 125 126 127 128 129 ··· 232 下一页