@Autowired private Environment env; public void method() { String url = env.getProperty("memcached.url"); } @Value("${memcached.url}") String memcachedUrl; public void method() { String url = memcachedUrl; }
참조 : https://stackoverflow.com/questions/10527124/how-to-query-data-via-spring-data-jpa-by-sort-and-pageable-both-out-of-box final PageRequest page1 = new PageRequest( 0, 20, Direction.ASC, "lastName", "salary" ); final PageRequest page2 = new PageRequest( 0, 20, new Sort( new Order(Direction.ASC, "lastName"), new Order(Direction.DESC, "salary") ) ); dao.findAll(page1);
pom.xml dev src/main/filters/dev.properties svc src/main/filters/svc.properties dev.properties 샘플db.driver=oracle.jdbc.OracleDriverdb.url=jdbc:oracle:thin:@IP:PORT:SIDdb.username=usernamedb.password=passwd jenkins 배포 시Build > Goals and options 에서 'clean package -P svc' 설정 개발일 경우 'clean package -P dev'
- Total
- Today
- Yesterday
- JVM
- rsync
- Docker
- rundeck
- nginx
- 리눅스
- groovy
- Config History
- Jenkins
- vagrant
- 플레이북
- Linux
- Ansible
- Thread Dump
- iTerm2
- 데브옵스
- Nexus
- PostgreSQL
- Shell Script
- 쓰레드덤프
- Playbook
- DevOps
- ssl
- openssl
- 젠킨스
- 파이프라인
- Password manager
- URL Encoding
- 엔서블
- 엔시블
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |