목록프로젝트/시행착오
Step-by-Step

사용자 비밀번호를 DB에 저장하려고 PasswordEncoder를 썼더니, Spring Security가 활성화돼서 자동으로 로그인 폼이 생기고,, 모든 URL 접근이 불가능해졌다 (403 Forbidden) [1] 우선 Config 파일 하나 만들기 @EnableWebSecurity @Configuration public class SecurityConfig { } [2] 로그인 폼 없애주기 @EnableWebSecurity @Configuration public class SecurityConfig { @Bean public SecurityFilterChain configure(HttpSecurity http) throws Exception { // Security 로그인 페이지 안 뜨도록 설정 ht..
분명 프로젝트 초기 설정에서 lombok을 받았고, @Getter @Setter 어노테이션도 사용할 수 있었다 하지만 실제 사용시 해당 DTO 클래스에서 get, set 메소드를 인식할 수 없었고, 인터넷에 쳐보고 해결방법 찾음 (Mac OS 기준) 해결 1) lombok.jar 파일 다운로드 : https://projectlombok.org/download 2) jar 실행을 위한 Java 설치 [참조] https://sshh.tistory.com/33 // 터미널에서 다음 명령어 입력 brew tap AdoptOpenJDK/openjdk brew install --cask adoptopenjdk8 3) jar 실행 [참조] https://animal-park.tistory.com/302 - 터미널에서..

초기 실행시 발생하는 에러 - 데이터베이스 연결하기 위한 정보가 없음 *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Database 연결하기 위한 DataSource가 없어서 그렇다 해결 내가 쓴 예전 글을 참조해서 작성함 : https://smile-development.tistory..