전체 글
-
[thymeleaf] 타임리프Front 2019. 12. 16. 23:36
템플릿엔진 ${..?} null체크. 값이 null이면 빈값이 출력된다 ${board?.idx} @{...}- 링크표현 @{/oreder/details(id=1, action='show_all')} #temporals - 날짜 포맷팅 함수 .arrayFormat(...)Array 타입 -> 날짜값 .listFormat(...) .setFormat(...) th:href th:src th:text th:style th:class th:fragment - 레이아웃 이름지정 th:insert = "경로:: fragment이름" th:replace ="경로:: th:include th:if - 화면에 띄울 조건 th:each - 순차접근 th:with - 변수정의 // th:with="startNumber=..
-
[JAVA] enum카테고리 없음 2019. 12. 13. 17:17
클래스처럼 보이게 하는 "상수" 서로 관련 있는 상수들을 모아 심볼릭한 명칭의 집합으로 정의한 것 public enum Type { WALKING, RUNNING, TRACKING, HIKING } public enum Type { static final String WALKING = "워킹화"; static final String RUNNING = "러닝화"; static final String TRACKING = "트래킹화"; static final String HIKING = "등산화"; } 열거된 순서에 따라 0 부터 순서값을 가짐. 차례대로 증가함. enum 열거형으로 지정된 상수는 대문자 사용. 마지막 끝에 세미콜론(;)을 붙이지 않음. # values() - 모든 원소를 배열에 담아 순서대로..
-
[REST]Springboot 2019. 12. 6. 15:28
REST : 분산하이퍼미디어 시스템에서 사용하는 통신 네트워크 아키텍쳐 RESTful : REST 구현 원칙을 지키면서 REST 아키텍쳐를 만드는 것 - client와 server의 분리 - stateless. server는 client 상태정보를 저장안함. 요청만 처리함. - cacheable. client request를 캐시한다. - layered system. server는 로드 밸런싱, 공유 캐시, 중개서버(프록시,게이트웨이)를 사용해 확성있는 시스템 구성가능 - uniform interface. 균일하고 통일된 URI interface 제공 - code on demand. client는 server에 코드를 받아 일시적 기능확장 가능(선택사항) #uniform interface 자원식별 : h..
-
curl Unexpected character (''' (code 39))Springboot 2019. 12. 6. 13:27
# 문제1 curl -i -X POST -H "Content-Type:application/json" -d '{"firstName": "Frodo", "lastName": "Baggins"}' http://localhost:8080/people {"cause":{"cause":null,"message":"Unexpected character (''' (code 39)): expected a valid v alue (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (org.apache.catalina.connector.CoyoteInputStream); line: 1, column: 2]"},"messa..
-
curl window 에서 사용하기기타 2019. 12. 5. 13:52
[1] 이미 curl이 있을 수 있습니다 Windows 10, 버전 1803 이상을 사용하는 경우 OS 는 curl 복사본이 이미 설치되어 있으며 사용할 수 있습니다. If you have Git for Windows installed.. ..\Git\mingw64\bin 에 curl.exe 가 있을 겁니다. 명령프롬프트에 curl www.google.com 결과가 잘 나온다면 끝! [2-a] Installing curl with a package manager 패키지 매니저가 있다면? For Chocolatey, run choco install curl For MSYS2, run pacman -S curl For Scoop, run scoop install curl For Cygwin, add the ..
-
The server time zone value ‘KST’ is unrecognized or represents more than one time zone.DB/MySQL 2019. 12. 5. 11:43
# The server time zone value 'KST' is unrecognized or represents more than one time zone # My SQL 5.1.X 이후 버전부터 KST 타임존을 인식하지 못함 ## jdbc:mysql://${MYSQL_HOST:localhost}:3306/db_example?characterEncoding=UTF-8&serverTimezone=UTC
-
[Data] gradle+mysql+jpaSpringboot 2019. 12. 5. 11:37
[1] Create the application.properties File spring.jpa.hibernate.ddl-auto=update #none: No change is made to the database structure. (good choice) #update: Hibernate changes the database according to the given entity structures. #create: Creates the database every time but does not drop it on close. #create-drop: Creates the database and drops it when SessionFactory closes. * Mysql default : none..
-
A bean with that name has already been defined카테고리 없음 2019. 12. 1. 03:36
# oauth2ClientFilterRegistration could not be registered A bean with that name has already been defined in com.example.SocialApplication and overriding is disabled # Spring Boot 2 now disables that sort of bean overriding by default. You can re-enable it by setting the following property in your application.yml: https://stackoverflow.com/questions/51367566/trouble-when-changing-spring-boot-versi..