- Arawn's Dev Blog
- Outsider's Dev Story
- Toby's Epril
- Benelog
- NHN 개발자 블로그
- SK 플래닛 기술 블로그
- OLC CENTER
- 소프트웨어 경영/공학 블로그
- 모바일 컨버전스
- KOSR - Korea Operating System …
- 넥스트리 블로그
- 리버스코어 ReverseCore
- SLiPP
- 개발자를 위하여... (Nextree 임병인 수석)
- "트위터 부트스트랩: 디자이너도 놀라워할 매끈하고 직관…
- Learning English - The English…
- real-english.com
- 'DataScience/Deep Learning' 카테…
- Deep Learning Summer School, M…
- Deep Learning Courses
목록Spring (36)
민서네집
Spring Framework 의 RestTemplate 을 이용하여 개발 시 에러가 났을 경우응답 온 body값을 알고 싶다면... HttpClientErrorException.getResponseBodyAsString() 을 이용한다. [참고] http://stackoverflow.com/questions/17177107/getting-400-bad-request-when-using-spring-resttemplate-to-post
[참고] http://sbcoba.tistory.com/entry/Spring-mybats-%EC%82%AC%EC%9A%A9%EC%8B%9C-%EC%9E%AC%EC%8B%9C%EC%9E%91-%EC%97%86%EC%9D%B4-%EC%84%9C%EB%B2%84-%EB%B0%98%EC%98%81 위 블로그를 참조했는데,SqlSessionFactoryBean 을 설정할 때, mapperLocations 를 주지 않고, 아래처럼 configLocation 을 설정하는 경우 xml 파일이 relaoding 되지 않았다. 그래서 위 블로그를 참고로 해서 좀 수정했다. configLocation 에 지정된 MapperConfig.xml 파일 안에 지정된 다른 mapper 파일을 불러오기 위해서, xml 파일을 par..
Spring Framework 를 사용하고 있는데, request 를 어디서나 편리하게 얻을 수 없을까? http://stackoverflow.com/questions/559155/how-do-i-get-a-httpservletrequest-in-my-spring-beans Solution 1: inside method (>= Spring 2.0 required)HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder .getRequestAttributes()).getRequest();Solution 2: inside b..
/WebContent/WEB-INF/spring/applicationContext.xml message Default Transaction(REQUIRED) 말고, 다른 트랜잭션을 걸고 싶은 경우는 Service 메서드 위에 @Transactional(propagation = Propagation.REQUIRES_NEW) 라고 특정 Transaction 속성을 넣어준다. 그러면 Service 내의 모든 메서드는 @Transactional 어노테이션 없이도, 기본 트랜잭션(REQUIRED) 가 적용되고, 어노테이션이 붙은 서비스의 메서드의 경우는 그 어노테이션에 해당하는 트랜잭션이 적용된다.
기존 웹어플리케이션에서 Spring MVC를 추가하려고 한다. 이전 코드는 그대로 놔두고, mgmt 라는 폴더를 하나 만들어서 그 폴더 아래만 Annotation 을 Scan 하도록 설정했다. applicationContext.xml 파일 기존 패키지에서 Spring Bean 을 가져와서 사용하고 싶을 때는 어떻게 해야할까? web.xml 에서 org.springframework.web.context.ContextLoaderListenercontextConfigLocation/WEB-INF/spring/applicationContext.xmlcom.sample.config.AppServletContextListener AppServletContextListener.java public class AppS..
1) "Mapped Statements collection does not contain value ...." 이라는 오류가 발생하는 경우. 다음 세가지가 일치해야 한다. interface 파일명, Quert가 XML로 들어있는 mapper file, mapper namespace [원문] The three names have to match: - interface = com.enlliance.inventory.mappers.SettingMapper.class - mapper file = /com/enlliance/inventory/mappers/SettingMapper.xml - mapper namespace = com.enlliance.inventory.mappers.SettingMapper If t..
Java Annotations Tutorial with Custom Annotation Example and Parsing using Reflection http://www.journaldev.com/721/java-annotations-tutorial-with-custom-annotation-example-and-parsing-using-reflection
http://www.mkyong.com/spring-mvc/spring-mvc-form-handling-annotation-example/
http://mybatis.github.io/spring/index.html http://mybatis.github.io/mybatis-3/index.html http://jeremyko.blogspot.kr/2012/07/mybatis-spring.html http://blog.mybatis.org/ https://code.google.com/p/mybatis/ https://src.springframework.org/svn/spring-samples/
maven 프로젝트를 하나 만들어서 pom.xml 을 다음과 같이 만든다.프로젝트 루트 폴더에 target 이라는 디렉터리를 생성한다.maven install 을 실행시키면 target 디렉터리에 pom.xml 에 설정된 라이브러리가 의존성 있는 jar들과 함께 다운로드 될 것이다. 4.0.0 com.acme.springdm com.acme.springdm.target pom SpringDM with Jetty 1.0.0 Spring Framework Bundle .\target org.springframework org.springframework.spring-library libd 3.2.0.RELEASE com.springsource.repository.bundles.release SpringSou..