본문 바로가기

전체 글415

[Java] About JVM, JRE, JDK JVM, JRE, JDK 자바 프로그래밍에 사용되는 3대 핵심 기술 JVM: Java Virtual Machine 1. 정의 자바 소스로 만들어지는 자바 바이트 코드 실행 2. 역할 바이트 코드 읽기 ➡ 검증 ➡ 실행 실행 환경(Runtime Environment) 규격 제공(필요 라이브러리 및 기타 파일 등) 3. 특징 플랫폼에 의존적(리눅스의 JVM != 윈도우즈의 JVM) But 컴파일된 바이트 코드는 어떤 JVM에서든 실행 가능 JRE: Java Runtime Environment 1. 정의 컴파일된 자바 프로그램을 실행시킬 수 있는 자바 환경 자바 코드 실행 위한 도구들로 구성된 패키지(자바 프로그램 실행 위해 설치 필수) 2. 역할 자바 프로그램 구동 위한 독립형 구성 요소로 사용 가능, bu.. 2021. 11. 17.
[Gradle] Could not find method compile() for arguments [org.springframework.boot:spring-boot-starter-web] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. 에러 메시지 build.gradle 초기 설정 시 dependencies { compile('org.springframework.boot:spring-boot-starter-web') testCompile('org.springframework.boot:spring-boot-starter-test') } 하기와 같이 에러 발생 Could not find method compile() for arguments [org.springframework.boot:spring-boot-starter-web] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. 해결 방법 1. Gradle 버전 확인 c.. 2021. 11. 16.
[Spring] 로그: JNDI lookup for name [spring.liveBeansView.mbeanDomain] threw NamingException with message DB 연동 후 하기 로그 뜨는 경우: Spring의 Live Beans Graph 관련 기능 제공하는 부분에 대한 Debug성 메시지 (에러 아님) 17:29:21.649 [localhost-startStop-1] DEBUG o.springframework.jndi.JndiTemplate - Looking up JNDI object with name [java:comp/env/spring.liveBeansView.mbeanDomain] 17:29:21.649 [localhost-startStop-1] DEBUG o.s.jndi.JndiLocatorDelegate - Converted JNDI name [java:comp/env/spring.liveBeansView.mbeanDomain] not found.. 2021. 11. 16.
[Eclipse] Tomcat의 Context path (root) 설정 이클립스에서 서버 구동 시 자동 설정되는 경로 수정 방법 [방법1] Eclipse ➡ Servers ➡ Tomcat ➡ server.xml ➡ path 수정 [방법2] Eclipse ➡ Project 우클릭 ➡ Properties ➡ Web Project Settings ➡ Context root 수정 (서버 재실행 ➡ server.xml에 자동 설정됨) [마무리] 이후 Server ➡ Run on Server ➡ 서버 재실행 2021. 11. 8.
[JS/jQuery] action, submit HTML Submit JavaScript function fnSubmit() { var form = document.formName; form.submit(); } jQuery function fnSubmit() { $('#formId').attr('action', 'action.do').submit(); } 2021. 11. 3.
[JSTL] select option 값 유지 값 이동 순서 View ➡ Controller ➡ View HTML All Spring Summer Fall Winter [방법1] 삼항 연산자 All Spring Summer Fall Winter [방법2] 삼항 연산자 + JSTL 컨트롤러에서 넘어온 객체가 리스트인 경우 All ${list.listName} [방법3] JSTL All ${list.listName} - 출처: https://mi-nya.tistory.com/282 2021. 11. 3.
[jQuery] select 이벤트 부여 select 이벤트 부여 방법 $('#selectId').on('click', function() {}); $('#selectId').click(function() {}); $('#selectId').bind('click', function() {}); 동적으로 생성된 select 이벤트 부여 방법 $(document).on('change', '#selectId', function() {}); 출처: https://pamaha.tistory.com/33 2021. 11. 2.