@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
- vagrant
- 엔서블
- Jenkins
- rundeck
- 젠킨스
- Ansible
- 플레이북
- Playbook
- 쓰레드덤프
- URL Encoding
- Shell Script
- Thread Dump
- Nexus
- 리눅스
- openssl
- iTerm2
- PostgreSQL
- groovy
- Linux
- 엔시블
- Docker
- 데브옵스
- JVM
- Config History
- Password manager
- DevOps
- 파이프라인
- nginx
- ssl
- rsync
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |