본문 바로가기

Study_Framework33

[Spring] Spring Batch Reference 2016. 8. 5.
[Spring] application.properties 설정값 http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html # =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guideline. Do NOT copy it in its # entirety to your own application. ^^^ # =================================================================== # ----------------.. 2016. 7. 28.
[Spring] Security 인증정보 사용하기 1. pom.xml 추가 org.springframework.security spring-security-taglibs 2. jsp 상단에 추가 3. jsp에서 사용 ex) 로그인 아이디 2016. 7. 13.
[Spring] YML(프로퍼티) 파일 읽기 1. YML 파일 생성(위치 등) 2. YML을 컴포넌트로 등록 3. JSP(View)에서 사용 2016. 7. 6.
[Spring] [SpringBoot] JSP 사용하기 1. application.properties 수정 server.port=8080 server.context-path=/sportsstore spring.mvc.view.prefix=/WEB-INF/jsp/ spring.mvc.view.suffix=.jsp 2. 메이븐 수정 및 업데이트 javax.servlet jstl org.apache.tomcat.embed tomcat-embed-jasper provided 3. Controller 추가, JSP 추가 2016. 4. 20.
[Spring] 설정파일 읽기 2016. 2. 2.
[Spring] Springframework 한글 깨짐 현상 post 방식은 자체적으로 인코딩이 가능하지만 method에 post만 붙여주면 끝이나는 사항 하지만 get방식은 다르다 서버 쪽에 server.xml 파일을 보면, connector 하는 부분에서 빨간부분을 추가해주면 해결된다. 2012. 8. 7.
[Struts2] web.xml 설정 파일이름 : web.xml struts2 struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 /* index.action 2008. 12. 29.
[Spring] 스프링 API를 이용한 AOP ● 스프링 API를 이용한 AOP 아래는 스프링API에서 지원하는 인터페이스 Advice입니다. 인터페이스 (org.springframework.aop.support 패키지에 있음) 간단한 설명 MethodBeforeAdvice 해당 메소드가 실행 전 실행 AfterReturningAdvice 해당 멧소드가 실행된 후 실행 ThrowsAdvice 해당 메소드에서 예외발생시 실행 MethodInterceptor 해당메소드의 실행전,후와 예외발생시 실행 이제부터는 각각의 인터페이스에서 꼭 구현해야 할 메소드를 간략하게 설명하겠다. - MethodBeforeAdvice void before(Method method, Object[] args, Object target) throws Throwable metho.. 2008. 10. 21.
[Spring] JUnit4와 AspectJ 연동 예제 파일이름 : /WEB-INF/src/aspect/TestAspect.java @Aspect public class TestAspect { private static final Logger logger = Logger.getLogger(TestAspect.class); @Before("execution(* *..*add*(..))") public void test(JoinPoint point) throws Throwable{ logger.info("# 테스트로 실행해봅시다 #"); } @Around("execution(* *..modityMember(..))") public void test2(ProceedingJoinPoint point) throws Throwable{ logger.info("# 모든 .. 2008. 10. 20.
[Spring] 스프링에서 request와 response의 CharacterEncoding 파일이름 : web.xml springEncoding org.springframework.web.filter.CharacterEncodingFilter encoding EUC-KR forceEncoding true springEncoding /* 파일이름 : org/springframework.web.filter.CharacterEncodingFilter.java protected void doFilterInternal( HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { if (this.encoding != null && (this. fo.. 2008. 10. 20.
[Spring] 스프링에서 JUnit4 Test 파일이름 : /WEB-INF/src/test/DAOTest2.java package test; import model.MemberDTO; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import dao.MemberDAO; @RunWith(SpringJUnit4ClassRunner.class) @Conte.. 2008. 10. 20.
[Spring] 외부설정 프로퍼티 사용하기 외부프로퍼티 파일을 정보를 사용하기 위해서 다음과 같이 설정하면 된다... 1. Properties 파일을 작성한다. 파일이름 : /WEB-INF/classes/config/jdbc.properties jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/test jdbc.username=root jdbc.password=root 2. Bean Definition 파일에 하단의 내용을 추가한다.(프로퍼티 파일 추가) 파일이름 : /WEB-INF/config/applicationContext.xml classpath:config/jdbc.properties locations 프로퍼티가 여러개일 경우 콤마나 공백으로 구분하여 작성하거나.. 2008. 10. 8.