본문 바로가기

분류 전체보기86

[Sphinx/LaTeX] Sphinx를 사용하여 한글 pdf 문서 만들기 만들어진 API 문서를 pdf로 변환하거나 별도의 매뉴얼 문서를 pdf로 만들고자 할 때 Sphinx와 LaTeX를 사용하여 쉽게 만들 수 있다. Sphinx를 사용해서 만든 pdf 문서의 예시는 Sphinx 매뉴얼 문서를 참고한다. - https://buildmedia.readthedocs.org/media/pdf/sphinx/stable/sphinx.pdf TeX Live와 같은 LaTeX와 한글 글꼴이 미리 설치되어 있어야 한다. TeX Live, 한글 글꼴 설치 TeX Live 설치 - http://wiki.ktug.org/wiki/wiki.php/TeX%20Live%20%EC%84%A4%EC%B9%98%20%28Windows%29 Naver 나눔글꼴 설치 - https://hangeul.nave.. 2019. 9. 16.
Wiring in Spring (@Resource, @Inject, @Autowired 차이) Spring Framework에는 의존성 주입과 관련된 annotation @Resource, @Inject, @Autowired가 있다. 모두 setter와 field에서 사용할 수 있다. @Resource Match by Name Match by Type Match by Qualifier 위 우선순위대로 의존성이 주입된다. @Inject Match by Type Match by Qualifier Match by Name 위 우선순위대로 의존성이 주입된다. @Inject annotaion을 사용하려면 Gradle 또는 Maven에서 javax.inject 라이브러리를 사용하도록 설정해야 한다. @Autowired Match by Type Match by Qualifier Match by Name 의존성.. 2019. 9. 15.
[Spring Boot/JPA] hibernate.ddl-auto 옵션으로 서버를 실행할 때마다 DB 초기화하기 JPA로 DB를 초기화하는 방법은 두 가지가 있다. spring.jpa.generate-ddl (boolean) switches the feature on and off and is vendor independent. spring.jpa.hibernate.ddl-auto (enum) is a Hibernate feature that controls the behavior in a more fine-grained way. This feature is described in more detail later in this guide. 여기서 2. spring.jpa.hibernate.ddl-auto를 통해 DB 초기화 전략을 만들 때 사용할 수 있는 옵션 값은 none, update, validata, cre.. 2019. 9. 13.
[JPA/MySQL] Specified key was too long; max key length is 1000 bytes 증상 Spring Boot Application을 시작할 때 Hibernates가 테이블을 생성하는 시점에서 에러 발생 Caused by: java.sql.SQLSyntaxErrorException: Specified key was too long; max key length is 1000 bytes at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) ~[mysql-connector-java-8.0.16.jar:8.0.16] at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) ~[mysql-connector-java-8.0.16... 2019. 9. 12.