본문 바로가기

분류 전체보기

Shape -> jVectorMap 변환 방법! jVectorMap은 자체적으로 convert를 사용하여 shp 파일의 vector 이미지를 svg로 변환하여 맵 파일을 생성한다. 그러나 이 컨버터를 이용할 경우 svg 변환 상에 오류가 있는것인지 대한민국 지도 상에 구멍이 슝슝 뚫린다. 아래처럼... 대구와 대전 일부가 없다. 이를 해결하기 위해 제작자에게 메일도 보냈지만 묵묵부답이라 자체적으로 해결 할 수 밖에... 1. shp 파일을 편집할 수 있는 (읽어 들일 수 있는) 프로그램을 찾는다. 2. 이 프로그램을 이용하여 SVG로 변환할 수 있는지 찾는다. 3. SVG로 변환된 정보를 svgto.jvectormap.com 에서 지도로 변환해 본다. 간단한거 같지만 이게 은근 쉽지가 않았다.. 개발자로써 지도 프로그램을 쓰는 것도 그렇고 사용법을 일..
SVG를 jVectorMap으로... SVG Path만 있다면 jVectorMap으로 가능하다. 아래는 SVG 샘플... 위 샘플을 아래 사이트에서 확인할 수 있다. svg to jvectormap : http://svgto.jvectormap.com
[jUnit] Spring 3.2.3 + myBatis 3.2 Test suite 적용. 현재 작업하고 있는 프로젝트의 모든 프레임워크를 최신버전으로 세팅을 하고 서비스 클래스를 jUnit으로 작성해보았다... Maven jUnit dependency junit junit 4.7 test Maven Spring framework test org.springframework org.springframework.test 3.2.3.RELEASE AbstractApplicationContextTest.java package com.openerp.service.test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.contex..
Security 3.1.4 - Method 'setLoginFormUrl' is marked deprecated Security 3.1.4를 사용하면서 LoginUrl 설정을 하면서 아래와 같은 워닝을 보았다.. 확인해 본 결과 아래와 같이 변경 되었다.. org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.setLoginFormUrl(String) use constructor injection 그러므로 아래와 같이 변경해준다.. 아래는 deprecated 된 항목을 살펴볼 수 있는 URL. http://static.springsource.org/spring-security/site/docs/3.1.x/apidocs/deprecated-list.html
Ext.Ajax Ext.Ajax.request({ url: '../com/ProxyJsonSimpleOneList.jsp', contentType: 'json', params: { name: 'value', today: new Date(), code: Ext.getCmp( 'brcCode' ).value }, success: function(response){ console.log(response); }, failure: function(response, opts) { commonExtAjaxFailure(response, opts); } }); dddd
java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V 이런 에러가 나는데... SLF4J와 Spring Context 가 가지고 있는 slf4j 가 충돌이 나서 그런거므로 maven 설정을 아래와 같이.. org.springframework org.springframework.spring-library libd 3.2.3.RELEASE javax.servlet com.springsource.javax.servlet org.springframework.context o..
myBatis DAO Pattern example GenericMyBatisDaoSupport.java package com.openerp.common.dao; import java.io.Serializable; import java.util.ArrayList; import org.apache.ibatis.exceptions.PersistenceException; public interface GenericMyBatisDaoSupport{ public T get(PK id) throws PersistenceException;//get obj of type T by the primary key 'id' public ArrayList getAll() throws PersistenceException;//get all objects of type T publ..
MyBatis 3.2) Mapper 방식과 DAO Pattern은 같이 사용할 수 없다. Mapper 방식은 아래 처럼 사용한다. pacakge com.openerp.dao public interface RoleDao{ List listRole(Parameters params); List listRole(Parameters params, int pg, int ps); } 이 경우 Mapper에 등록을 했기때문에 roleMapper 라는 이름으로 bean에 등록이 된다. "예전부터 사용해오던 DAO 패턴을 같이 쓸 수 없을까?" 라는 궁금증이 생겨 반나절동안 해 보았는데... 안된다. DAO 패턴도 어쨋든 Spring DI에 등록이 되어야 하는데 같은 클래스가 두개의 이름으로 등록이 되는 현상이 발생된다. No qualifying bean of type [com.openerp.dao.RoleD..