파일업로드multipart/form-data 방식으로 전송spring boot의 경우 application.properties의 설정으로 파일 관련 설정을 할 수 있다 Application.properties[application.properties]// File Upload SIZE 설정spring.servlet.multipart.max-file-size = 1MBspring.servlet.multipart.max-request-size = 10MB// File multipart On/Offspring.servlet.multipart.enable=true/false ( default : true )// 파일 업로드 경로 (슬래시("/") 주의)file.dir = /Users/Test/study/dire..
Formatter... Formatter 란?Converter의 심화 버전Converter의 경우 제한이 없는 변환이 가능 (ex 문자 객체 , 숫자 객체 등등..)Formatter의 경우 문자를 기준으로 변경하는 것을 의미 ( 문자 객체 , 문자 숫자 , 문자를 기준으로 변경) Formatter 인터페이스public interface Formatter extends Printer, Parser {}public interface Printer { String print(T object, Locale locale);}public interface Parser { T parse(String text, Locale locale) throws ParseException;} Formatter ..
spring type converter.. 타입 변환 필요 예시스프링 MVC 요청 파라미터@RequestParam@ModelAttribute@PathVariable@Value 등으로 YML 정보 읽기XML에 넣은 스프링 빈 정보 변환View를 렌더링할 때 Converter Interfacepublic interface Converter { @Nullable T convert(S source);}S -> T 로 변환원하는 타입에 맞추어서 변환 가능// Member.class@Getter@AllArgsConstructorpublic class Member{ private String memberName; private Integer memberNum;}// StringToMemberCo..
- Total
- Today
- Yesterday
- 게시판
- 코딩테스트
- JSON
- BFS
- bean
- 정렬
- 예외처리
- 깊이우선탐색
- stack
- 오블완
- 포트폴리오
- Java
- HTML5
- 게시판 프로젝트
- 이진탐색
- 기술면접
- Spring
- 버블정렬
- 검증
- 백준
- JDBC
- db
- 클래스
- 타입변환
- 티스토리챌린지
- DFS
- 알고리즘
- SQL
- Thymeleaf
- 우선순위 큐
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |