Spring Boot14 Axios, Spring Security 403 혹은 network err 날 때 해결 방법 Spring Security 에 authentification중 자동으로 role을 검사합니다. 이 때 ROLE_을 붙이고 검사하니 붙이지 말라고 하여 enum과 role을 전부 수정해주니 해결 됩니다.. role에서 ROLE_를 때주면 해결됩니다... 2023. 4. 20. Could not autowire. No beans of 'JavaMailSender' type found. 에러 해결 Spring boot 3.0.0 spring-boot-starter-mail을 사용하고 있습니다. implementation("org.springframework.boot:spring-boot-starter-mail") spring.mail 세팅들을 제대로 해주었는데도 갑자기 에러가 나옵니다. @EnableAutoConfiguration을 추가해주면 에러가 사라집니다. 참고 더보기 https://stackoverflow.com/questions/23246912/could-not-autowire-org-springframework-mail-javamail-javamailsender 2023. 4. 11. JpaRepository SQLInsert ID column 순서 바뀜 주의... MovieTheater의 경우 "CGV, MB, LC"로 지정 해줘서 넣어 주기 때문에 null이 절대 들어 가지 않습니다... 하도 이상해서 varchar대신 text로 변경하여 값을 확인해 보니 주소 값이 앞에 있습니다...? 현재 Entity 코드입니다. package com.threemovie.threemovieapi.Entity import com.threemovie.threemovieapi.Entity.PK.TheaterDataPK import jakarta.persistence.* import org.hibernate.annotations.SQLInsert @Entity @Table(name = "TheaterData") @IdClass(TheaterDataPK::class) @SQLInse.. 2023. 3. 12. QueryDsl jakarta 설정 방법 스프링 부트 3.0.0으로 넘어가면서 javax가 아닌 jakarta로 바뀌어 jpaqueryfactory가 설정되지 않아 방법을 찾았습니다. pulgins { id("org.springframework.boot") version "3.0.1" id("io.spring.dependency-management") version "1.1.0" kotlin("jvm") version "1.7.22" kotlin("plugin.spring") version "1.7.22" kotlin("plugin.jpa") version "1.7.22" kotlin("kapt") version "1.7.22" } .. dependencies { .. implementation("com.querydsl:querydsl-jpa:.. 2023. 2. 10. 이전 1 2 3 4 다음