[BACKEND]
-
[스프링 부트 오류] pgjdbc autodetected server-encoding to be iso8859_1[BACKEND]/Spring Boot 오류 2020. 5. 17. 22:37
스프링 부트에서 pgSQL을 사용하려고 하였으나 다음과 같은 오류가 발생하였다. pgjdbc autodetected server-encoding to be iso8859_1 오류의 원인은 단순히 로그인하려는 유저 또는 데이터베이스가 없어서 발생한 문제였다. 다음과 같이 SQL shell을 실행한다. 그리고 아래와 같이 user를 생성해준다. Server, Database, Port, Username은 그냥 Enter를 입력해서 넘어가면되고 패스워드만 설정해준다. 그리고 pgAdmin에서 확인해준다. 문제가 없다면 인텔리제이나, 이클립스 IDE에서 DB 연결이 정상적으로되는지 테스트하도록한다. 그리고 스프링에서 실행하면 잘 되는 것을 확인할 수 있다.
-
[스프링 부트 오류] No message available[BACKEND]/Spring Boot 오류 2020. 5. 17. 19:12
오류명 : No message available 오류원인 : 1. Lombok Requires Annotation Processing 오류 2. MainApplication이랑 다른 패키지에 있을 경우 오류해결 : 1. Lombok Requires Annotation Processing 문제 해결 2. MainApplication이랑 같은 패키지에 넣어 놓아서 해결 1. Lombok Requires Annotation Processing 오류 인텔리제이로 프로젝트 실행시 아래 오류와 함께 프로젝트 실행이 안되었다. 확인해보니 Lombok Requires Annotation Processing 오류로 확인되었다. 다음과 같이 Enable 버튼을 클릭하여 해결하거나 아래와 같이 설정하여 해결하도록하자. 1-..
-
[스프링 부트 개념] 재시작없이 정적 소스(html, css, js) 변경하기[BACKEND]/Spring Boot 개념 2020. 4. 16. 11:54
pom.xml에 의존성 추가하기 org.springframework.boot spring-boot-devtools 2.0.4.RELEASE application.properties에 아래 내용 추가 spring.devtools.livereload.enabled=true spring.freemarker.cache=false spring.thymeleaf.cache=false 위와 같이 추가한 후 다시 정적 소스 코드 수정 후 새로고침을 하면 변경된 부분이 정상적으로 출력되는 것을 확인할 수 있다.
-
[스프링 부트 개념] 현재 스프링 부트에 맞게 의존성 추가하기[BACKEND]/Spring Boot 개념 2020. 4. 16. 10:42
의존성 추가시 현재 스프링 부트에 맞는 의존성 버전 확인방법은 다음과 같다. 1. 스프링 부트 프로젝트의 pom.xml에서 버전 확인 2. 스프링 홈페이지에서 Docs 확인 3. 버전에 맞는 의존성 MVN에서 확인 후 추가 1. 스프링 부트 프로젝트의 pom.xml에서 버전 확인 2. 스프링 홈페이지에서 Docs 확인 다음과 같이 확인 후 본인에게 맞는 스프링 부트 버전의 Reference Doc으로 이동한다. 하단에 Dependency Versions 클릭 필자는 hibernate를 추가할 것이기 때문에 다음과 같이 버전을 확인한다. hibernate-entitymanager를 추가해보도록하자. 3. 버전에 맞는 의존성 MVN에서 확인 후 추가