개발/Error
![H2 Database "C:/Users/사용자/test" not found, either pre-create it or allow remote database creation ( not recommended in secure environments) [90149-200] 90149/90149](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fcrm4TY%2FbtrG8W9GdQO%2FDMcrmNORuzmiPSIQGCwpnK%2Fimg.png)
H2 Database "C:/Users/사용자/test" not found, either pre-create it or allow remote database creation ( not recommended in secure environments) [90149-200] 90149/90149
C:/Users/사용자 폴더에 test파일이 없어서 생긴 문제이다. 경로에 'test.mv.db' 파일을 생성하고 연결 재시도 하면 된다. 성공적으로 연결된 모습!!
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
테스트를 진행하던 도중 에러가 발생했다. 테스트 코드 @DataJpaTest public class MemberRegisterTest { @Autowired private MemberRepository memberRepository; @Test public void 멤버Null확인(){ assertThat(memberRepository).isNotNull(); } } 에러 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test 이 에러는 @DataJpaTest나 @Spring..
![[Exception] Exception in thread "main" java.lang.IllegalArgumentException: adding a window to a container](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FwJ47f%2FbtrCHdWoewx%2FLR1rsKBBX6h9EY5XoZpUuK%2Fimg.png)
[Exception] Exception in thread "main" java.lang.IllegalArgumentException: adding a window to a container
학교 과제 중 BouncingBall 클래스를 작성하다가 다음과 같은 오류가 발생했다. 구글링 결과 JFrame은 최상위 컴포넌트기 때문에 어디에도 추가 될 수 없다는 것을 파악했다. JWindow에 JFrame을 component로 추가하려고 할 경우 위와 같은 에러가 발생하는 것이다. 참고한 링크는 다음과 같다. https://www.daniweb.com/programming/software-development/threads/104038/adding-a-jframe-component-to-jtabbedpane 이 부분을 이렇게 바꿔주니 간단히 해결됐다! import 단축키를 사용하다가 잘못 눌러서 벌어진 일이었다..ㅎㅎ