일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- it
- java
- IntelliJ
- 요리
- javascript
- elasticsearch
- docker
- jenkins
- php
- Oracle
- Spring
- AWS
- JPA
- Gradle
- Web Server
- 맛집
- springboot
- tool
- jsp
- MySQL
- Git
- ubuntu
- Spring Boot
- redis
- Design Patterns
- ReactJS
- db
- devops
- linux
- laravel
- Today
- Total
목록2019/06/19 (4)
아무거나
*** mysql(mariaDB)+Spring 연결 1. pom.xml 라이브러리 추가 mysql mysql-connector-java 5.1.39 org.springframework spring-jdbc ${org.springframework-version} org.springframework spring-test ${org.springframework-version} 2. webapp/WEB-INF/spring/root-context.xml 수정 - root-context.xml 하단 namespaces 탭에서 (aop, beans, context, jdbc) 체크 - source탭에서 위에 namespaces 추가된 애들 확인 xmlns:aop="http://www.springframework.or..
java.util.Date date = new Date("Sat Dec 01 00:00:00 GMT 2012"); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); // yyyy-MM-dd HH:mm:ss String format = formatter.format(date); System.out.println(format);
[코드예제] import java.text.SimpleDateFormat; import java.util.Calendar; Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, 1); SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd"); // Output "Wed Sep 26 14:23:28 EST 2012" System.out.println(cal.getTime()); String formatted = format1.format(cal.getTime()); // Output "2012-09-26" System.out.println(formatted); // Output "Wed Sep 2..
1. pom.xml 추가 org.codehaus.jackson jackson-mapper-asl 1.7.1 2. 컨트롤러 추가 @RequestMapping(value="/s3Bucket/{bucketName}", method= RequestMethod.GET) public @ResponseBody S3Bucket getS3Bucket(@PathVariable String bucketName) { S3Bucket s3Bucket = new S3Bucket(); s3Bucket.setBucketName(bucketName); return s3Bucket; } 3. 모델 추가(getter/setter 생성자) package com.deploy.model; public class S3Bucket { String..