Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 이딴게개발자
- git reset
- git revase
- CRUD
- Java
- PathVariable
- HTML
- passwordencoder
- Thymeleaf
- localStorage
- Spring
- git amend
- oracle
- 부적합한열
- assertequals
- git
- useContext
- SQL
- Variabla
- WHEREIN
- springboot
- JDBC
- MVC
- mybatis
- content-box
- JavaScript
- react
- BCryptPasswordEncoder
- 배열
- ResultType
Archives
- Today
- Total
개발새발
[Java] the public type ~ must defined in its own file 본문
728x90
연습 문제 따라서 잘 하고있었는데 대체 뭐가 문제지..? 하던 찰나
The public type SmartTV must be defined in its own file
> public type SmartTV는 자체 파일로 정의해야 된다..?
결론
1. 클래스명과 파일명을 일치하지 않거나
2. 파일명과 일치하지 않는 클래스에 public 키워드를 붙일 때
발생하는 오류였다.
'오류잡기' 카테고리의 다른 글
[SpringBoot] org.springframework.web.bind.MissingPathVariableException (0) | 2023.11.28 |
---|---|
[SpringBoot] java.sql.SQLException: ORA-01017: 사용자명/비밀번호가 부적합, 로그온 할 수 없습니다. (0) | 2023.11.28 |
[SpringBoot] 부적합한 열 유형: 1111 (0) | 2023.11.27 |
[Java] NullPointException (0) | 2023.09.29 |
[Java] IndexOutOfBoundsException (0) | 2023.09.27 |