공부/에러노트 (8) 썸네일형 리스트형 [Spring] Hibernate Enum 사용시 type 문제 문제발생 - Hibernate 6 이후 Schema-validation: wrong column type encountered in column [status] in table [user]; found [varchar (Types#VARCHAR)], but expecting [enum ('registered','unregistered') (Types#ENUM)] 다음과 같은 문제 발생 class UserEntity, enum UserStatus @Entity @Table(name = "user") public class UserEntity extends BaseEntity { ... @Column(nullable = false, length = 50) @Enumerated(EnumType.STRING) .. [AWS] 플랫폼 후크를 사용한 Elastic Beanstalk 권한 설정 https://repost.aws/ko/knowledge-center/elastic-beanstalk-platform-hooks 플랫폼 후크를 사용해 Elastic Beanstalk 사용자 지정 플랫폼 후크를 사용하여 사용자 지정 스크립트 또는 기타 실행 파일을 생성하여 AWS Elastic Beanstalk 환경을 사용자 지정하고자 합니다. 해당 환경에서 실행되는 Amazon Elastic Compute Cloud(Amazon EC2) 인스 repost.aws 리액트 권한문제 발생 web: > react-scripts start web: sh: /var/app/current/node_modules/.bin/react-scripts: Permission denied project-root/ |-- .pl.. [PowerShell] powershell script SecurityError UnauthorizedAccess + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess PowerShell ExecutionPolicy - Restricted : 기본값, Windows의 Client에 제한됨. - RemoteSigned : 로컬 스크립트 및 원격 서명된 스크립트에 대해 허용 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned Execution Policy Change The execution policy helps protect you from scripts that you do not trust. Changing the execution policy.. [Node.js] nvm설치후 버전변경 node.js 다운그레이드를 위한 nvm설치 https://github.com/coreybutler/nvm-windows/ GitHub - coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically written in Go. A node.js version management utility for Windows. Ironically written in Go. - GitHub - coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically written in Go. github.com nvm -v : 설치 확인/버전 확인.. [Spring] WebSecurityConfigurerAdapter Deprecated https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter/ Spring Security without the WebSecurityConfigurerAdapter In Spring Security 5.7.0-M2 we deprecated the WebSecurityConfigurerAdapter, as we encourage users to move towards a component-based security configuration. To assist with the transition to this new style of configuration, we have compiled a list of .. [Spring] Jwt 의존성 설정 오류 : UnknownClassException 오류 내용 io.jsonwebtoken.lang.UnknownClassException: Unable to load class named [io.jsonwebtoken.impl.DefaultJwtBuilder] from the thread context, current, or system/application ClassLoaders. All heuristics have been exhausted. Class could not be found. Have you remembered to include the jjwt-impl.jar in your runtime classpath? 문제코드 implementation 'io.jsonwebtoken:jjwt-api:0.12.3' 참고 사이트 https://git.. JPA Entity Column을 카멜케이스로 변경하기 JPA Hibernate는 자동으로 스네이크 케이스를 이용하기 때문에 카멜케이스를 사용하기 위해선 application.properties에 다음과 같이 설정해준다 spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl 출처 : https://wakestand.tistory.com/938 [IntelliJ] attempt to recreate a file for type qclass 에러 인텔리제이에서 attempt to recreate a file for type ~ 형태의 에러가 발생하며 전체 프로젝트에서 QClass에 대하여 Can't find symbol의 문제가 발생한다. 프로젝트 폴더의 /generated/~/ 의 QClass들을 전부 지운 후 다시 프로젝트를 실행시켜 해결하였다. 이전 1 다음