본문 바로가기
728x90
반응형

IntelliJ3

[Trouble Shooting/IntelliJ] properties 파일에 작성한 한글이 자꾸 ??? 표시로 바뀐다면 File > Settings > Editor > File Encodings > Properties File UTF-8 로 설정하고 [Apply] 적용이 완료된 후, 다시 properties에 ?? 표시된 것을 지우고 한글로 다시 작성하여 수정한다. 그리고 https://drcode-devblog.tistory.com/536 [Spring] 스프링 메시지 소스 사용 및 .properties 파일 인코딩 설정 MessageSource 인터페이스 public interface MessageSource { String getMessage(String code, @Nullable Object[] args, @Nullable String defaultMessage, Locale locale); String getM.. 2023. 6. 28.
[Trouble Shooting / IntelliJ] 어느 순간 JSP가 에디터(IDE)에서 파일 인식이 안될 때 무지성으로 엔터나 스페이스를 누르는 바람에 jsp 가 인식이 안되버렸다. 어느 순간 이렇게 Settings > Editor > File Types > Java Server Page 를 찾아서 + 버튼을 눌러준 후 *.jsp 를 추가해주면 된다. 2023. 5. 19.
[Java/개념] 값 비교( '==' 동등 비교 vs equals() 객체 비교) 실무에서 값 비교를 쓸 때, 객체에 대해서는 보통 equals를 많이 쓴다. 기본 타입이랑 객체 타입의 값 비교가 다르다. 기본 타입은 값을 복사한다. 그래서 '==' 과 같은 동등비교가 가능하다. int a = 10; int b = 10; System.out.println("a == b = " + (a == b)); a == b = true 객체 타입은 '==' 와 같이 동등비교를 할 때 주소 값으로 비교한다. false가 나온다. Address address1 = new Address("city", "street", "10000"); Address address2 = new Address("city", "street", "10000"); System.out.println("(address1 == ad.. 2023. 3. 8.
728x90
반응형