본문 바로가기
728x90
반응형

Trouble Shooting7

[Trouble Shooting/IntelliJ] properties 파일에 작성한 한글이 자꾸 ??? 표시로 바뀐다면 File > Settings > Editor > File Encodings > Properties File UTF-8 로 설정하고 [Apply] 적용이 완료된 후, 다시 properties에 ?? 표시된 것을 지우고 한글로 다시 작성하여 수정한다. 그리고 https://drcode-devblog.tistory.com/536 [Spring] 스프링 메시지 소스 사용 및 .properties 파일 인코딩 설정 MessageSource 인터페이스 public interface MessageSource { String getMessage(String code, @Nullable Object[] args, @Nullable String defaultMessage, Locale locale); String getM.. 2023. 6. 28.
[Trouble Shooting / IntelliJ] 어느 순간 JSP가 에디터(IDE)에서 파일 인식이 안될 때 무지성으로 엔터나 스페이스를 누르는 바람에 jsp 가 인식이 안되버렸다. 어느 순간 이렇게 Settings > Editor > File Types > Java Server Page 를 찾아서 + 버튼을 눌러준 후 *.jsp 를 추가해주면 된다. 2023. 5. 19.
[H2 Database / Database] 스프링 부트 개발 시 ddl 외래키 참조로 인해 발생하는 문제 및 해결방안 ① (org.hibernate.tool.schema.internal.exceptionhandlerloggedimpl handleexception warn: generationtarget encountered exception acce.. 김영한(우아한형제들 기술이사)님의 JPA 강의를 듣다가 발생한 문제가 있다. 예제를 그대로 따라하다가 ① org.hibernate.tool.schema.internal.exceptionhandlerloggedimpl handleexception warn: generationtarget encountered exception accepting command : error executing ddl 와 같은 에러가 발생했다. 정확히는 경고문이지만, 프로그램이 원하는 대로 실행되지 않은 경우가 발생한다. 프로그램의 생명은 정확히 데이터를 처리할 수 있는 것이거늘... 그래서 이 오류를 고쳐야 한다. 이 오류를 고치기 위해서는 H2 Console의 버전을 바꿔줘야 한다. 만약 버전이 1.4.200, 버전이 200.. 2023. 2. 15.
[Trouble shooting / JPA / H2] JPA hibernate.properties not found / Could not load requested class : org.h2.Driver JPA를 실습해보기 위해서, Maven project를 만들고 pom.xml에 4.0.0 org.example ex1-hello-jpa 1.0-SNAPSHOT org.hibernate hibernate-entitymanager 5.3.10.Final com.h2database h2 2.1.214 test 11 11 와 같이 JPA Hibernate와 H2 데이터베이스 dependency를 추가하였다. 그리고 src/main/resource/METE-INF 디렉토리에 persistence.xml를 생성하여 H2 데이터베이스 정보를 넣어주었다. main 함수를 만들어서 EntityManagerFactory를 호출하여 정상적으로 작동하는지 확인해봤다. package hellojpa; import javax.p.. 2022. 11. 29.
[Trouble Shooting / H2 Database] IO Exception: "C:/Program Files (x86)/H2/bin/studyJpa.mv.db" [90028-214] H2 콘솔에서 신규로 사용자를 추가하려면 어떻게 해야할까? 위에 활성화된 아이콘을 우클릭하면 Create a new database 클릭 위와 같이 화면이 뜬다 studyJPA 로 하고 비밀번호를 입력하면 다음과 같이 나온다 IO Exception: "C:/Program Files (x86)/H2/bin/studyJpa.mv.db" [90028-214] 위와 같은 에러를 해결하려면? 파일 탐색기에서 위와 같은 경로에 위와 같은 경로명으로 쓸 db 파일을 만든다. 다시 위와 같이 접속 실행 접속이 되는 걸 확인할 수 있다. 2022. 10. 26.
[Trouble Shooting / Spring Boot] SpringConfig.java 에서 dataSource에서 계속 빨간 줄일 때 위와 같은 경우, 프로젝트를 빌드 해도 아무 이상 없이 컴파일된다면 신경쓰지 않고 그냥 진행해도 된다. 잘 컴파일 되기 때문에 신경쓰지 않고 진행해도 된다. 2022. 9. 29.
728x90
반응형