반응형

program 69

spring boot Jar 실행 시 Witelabel Error Page (404 Not Found) 에러 ( JSP )

JSP로 만들어진 사이트의 경우 위와 같이 build 환경을 구성하고 Excutable JAR 로 배포하면 “jsp 404 Not Found Error”에러가 발생한다. 이유는 JSP 를 지원하지 않기 때문이다. 초기 프로젝트 생성시 gradle.build 의 경우 아래와 같이 구성되어 있다. plugins { id 'org.springframework.boot' version '2.4.0' id 'io.spring.dependency-management' version '1.0.10.RELEASE' id 'java' } group = 'com.example' version = '0.0.1-SNAPSHOT' sourceCompatibility = '1.8' repositories { mavenCentra..

program/spring 2020.12.02

spring controller - json return ( request, response )

spring 에서 json 타입으로 request, response 처리하기 위해 pom.xml 에 다음 내용을 추가한다. com.fasterxml.jackson.core jackson-databind 2.9.9 com.fasterxml.jackson.core jackson-annotations 2.9.9 com.fasterxml.jackson.core jackson-core ${com.fasterxml.jackson.core-version} org.codehaus.jackson jackson-core-asl 1.9.13 org.codehaus.jackson jackson-mapper-asl 1.9.13 메이븐 업데이트 하여 라이브러리(저장소) 를 추가한다. * servlet context xml 에 와..

program/spring 2020.07.17

pom.xml 에서 mvnrepository 추가 후 오류 ( https )

Json 을 이용하기위해 com.fasterxml.jackson.core 을 추가하였으나 "jackson-core-2.9.9.jar" 를 못찾는다는 빌드 오류가 났다. 2020.01.15 기준으로 maven central reposistory 가 https 만 지원한다는 이유로 maven update 시에도 오류가 나는 상태였다. C:\Users\username\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.9 에서 jackson-core-2.9.9.jar.lastUpdated 를 열어보면 "Error code 501, HTTPS Required" 가 작성되어 있다. ( pom.xml 저장시 생성 ) C:\Users\username\.m2\set..

program/spring 2020.07.17

델리게이트 이해와 활용

Delegate ( 대리자 ) 1. callback method 의 구현시 이용 할 수 있다. 2. 메서드를 연속으로 실행 시켜야 할시 이용 할 수 있다. - Delegate chain3. 메서드를 대신 실행한다. 정도의 의미로 이해하고, 다른 메서드를 파라메터로 넘기거나,이벤트와 함께 사용하여, Delegate 가 할당연산자 ( = ) 으로 초기화 되는것을 막아 이용 할 수도 있다.이벤트 = 델리게이트 로 이해 하는것도 나쁘지 않다. 1. callback method 의 구현시 이용 할 수 있다. ================================================================= callback method 란 ? A method, B method, C method ...

program/c# 2019.02.01