java.lang.SecurityException: class "org.hamcrest.Matchers"'s signer information does not match signer information of other classes in the same package
·
JAVA/오류해결
😢 오류 내용 java.lang.SecurityException: class "org.hamcrest.Matchers"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(Unknown Source) at java.lang.ClassLoader.preDefineClass(Unknown Source) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.Secu..
[SpringBoot][오류해결] The dependencies of some of the beans in the application context form a cycle
·
JAVA/오류해결
구글 OAuth를 사용하던 도중 오류가 발생했다. APPLICATION FAILED TO START. 앱이 실행하는 것에 실패했다고 나온다. 오류 내용을 확인해보자. - 오류 내용 *************************** APPLICATION FAILED TO START *************************** Description: The dependencies of some of the beans in the application context form a cycle: ┌─────┐ | securityConfig (field private com.cos.security1.config.oauth.PrincipalOauth2UserService com.cos.security1.confi..
[Spring Boot][오류해결] Modifying queries can only use void or int/Integer as return type
·
JAVA/오류해결
Resolved [org.springframework.dao.InvalidDataAccessApiUsageException: Modifying queries can only use void or int/Integer as return type! Offending method: public abstract com.example com.example.repository.myRepository.mySave(int,int,java.lang.String); nested exception is java.lang.IllegalArgumentException: Modifying queries can only use void or int/Integer as return type! Offending method: publ..
[Spring Boot][오류해결] Executing an update/delete query
·
JAVA/오류해결
스프링 부트를 사용할 때 네이티브 쿼리를 통해 JPARepository를 다루는 경우가 있다. 그런데 아래와 같은 오류가 발생할 때가 있다. Resolved [org.springframework.dao.InvalidDataAccessApiUsageException: Executing an update/delete query; nested exception is javax.persistence.TransactionRequiredException: Executing an update/delete query] TransactionRequiredException이 발생한 것인데, update/delete 쿼리를 실행할 때 @Transactional을 붙여주지 않았기 때문에 발생한 에러이다. 문제의 코드 publ..
[Spring Boot][오류해결] Parameter 0 of constructor in ~~ required a bean of type ~~ that could not be found.
·
JAVA/오류해결
에러상황 *************************** APPLICATION FAILED TO START *************************** Description: Parameter 0 of constructor in com.bigbell.accountbook.rest.AccountRestController required a bean of type 'com.bigbell.accountbook.service.TodayAccountService' that could not be found. Action: Consider defining a bean of type 'com.bigbell.accountbook.service.TodayAccountService' in your configura..
[Spring Boot][오류해결] Parameter 0 of constructor in ~~ required a single bean, but 2 were found
·
JAVA/오류해결
Description: Parameter 0 of constructor in com.bigbell.springboot.cruddemo.service.EmployeeServiceImpl required a single bean, but 2 were found: - employeeDAOHibernateImpl: defined in file [D:\bigbell\Spring-Boot\22-jpa-crud- demo\target\classes\com\bigbell\springboot\cruddemo\dao\EmployeeDAOHibernateImpl.class] - employeeDAOJpaImpl: defined in file [D:\bigbell\Spring-Boot\22-jpa-crud- demo\targ..