Raegon Kim
Raegon Kim
```yml --- # Debug spring: config: activate: on-profile: debug jpa: properties: hibernate: show_sql: true format_sql: true use_sql_comments: true logging: level: org: springframework: transaction: error hibernate: type: descriptor: sql: trace ```
https://jojoldu.tistory.com/457
https://stackoverflow.com/questions/4490138/problem-with-init-runscript-and-relative-paths
spring boot 2.5 버전에서는 data.sql을 통한 초기 데이터 입력이 Hibernate ddl-auto 동작 이전에 실행된다. Hibernate 테이블 생성 이후에 데이터를 입력하기 위해서 `spring.jpa.defer-datasource-initialization` 설정을 true로 지정해야 한다. `spring.datasource.initialization-mode` 가 없어지고 `spring.sql.init.mode`...
https://mtlynch.io/human-code-reviews-1/
https://blog.usejournal.com/springboot-how-to-invalidate-jwt-token-such-as-logout-or-reset-all-active-tokens-73f55289d47b
Hibernate 더티 체킹시에 스냅샷과 엔티티를 비교할 때 엔티티의 equals 를 사용하지는 않는다. 대신 각각의 필드를 equals를 사용해서 비교하는데, 이때 불변 객체가 아닌 가변객체는 equals 를 구현해야 한다.
```java @Getter @Setter @Entity @NoArgsConstructor public class Team { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Setter(AccessLevel.NONE) @Column(nullable = false) private int id; private String name; private String country; @Builder public Team(String name,...
인증서 설정 https://hub.docker.com/_/jenkins ``` FROM jenkins:1.565.3 COPY https.pem /var/lib/jenkins/cert COPY https.key /var/lib/jenkins/pk ENV JENKINS_OPTS --httpPort=-1 --httpsPort=8083 --httpsCertificate=/var/lib/jenkins/cert --httpsPrivateKey=/var/lib/jenkins/pk EXPOSE 8083 ```
https://certbot.eff.org/lets-encrypt/ubuntufocal-webproduct.html certbot 인증서 발급