| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
- java
- html
- ajax
- Linux
- input
- laravel
- 톰캣
- Spring
- curl
- properties
- 안드로이드
- tomcat
- junit
- php
- File
- 와일드카드
- jquery
- CentOS
- DB
- 이클립스
- javascript
- error
- 정규식
- 리눅스
- Android
- larravel
- SeLinux
- MySQL
- JSON
- NetBeans
- Today
- Total
목록Java (40)
합쭈기 programming
classpath:/properties/db.properties 상기 등록 후
http://devsh.tistory.com/116 참조 https://my.jrebel.com/ 바로가기 유료 .. 이긴 한데 .. 소셜 연결로 개인 or 비상업적 용도로 무료 사용이 가능하다.
@Component @PropertySource("classpath:/props/global.properties") public class PropsManager { @Autowired Environment env; public String getLocalPath() { return env.getProperty(PropsParam.LOCAL_PATH); } public String getImagePath() { return env.getProperty(PropsParam.LOCAL_PATH) + env.getProperty(PropsParam.IMAGE_PATH); } public String getBoardPath() { return env.getProperty(PropsParam.BOARD_PATH)..
run configurations에서 arguments탭에 VM arguments 란에 -Xms512m -XX:+HeapDumpOnOutOfMemoryError 하면 out of memory 시 hprot 파일이 생성되는데 MemoryAnalyzer로 확인할 수 있다.
WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext( getFilterConfig().getServletContext(), FrameworkServlet.SERVLET_CONTEXT_PREFIX + "appServlet" ); bean클래스 userService= (bean클래스) context.getBean( "bean이름" );
filter단에서 request parameter에 기본적으로 셋팅하고 싶은 정보가 있을때 사용한다. AddParamHttpRequest.java public class AddParamHttpRequest extends HttpServletRequestWrapper { private final Map modifiableParameters; private Map allParameters = null; /** * Create a new request wrapper that will merge additional parameters into * the request object without prematurely reading parameters from the * original request. * * @p..
pom.xml org.springframework spring-test ${org.springframework-version} MockHttpServletRequest가 있어서 controller단 테스트도 가능
pom.xml org.apache.tomcat.maven tomcat7-maven-plugin 2.1 http://호스트주소/manager/text user name password / -> maven build -> goal : tomcat7:redeploy --> version 2.1 이상에서 동작 maven build 에러 시 jre path를 jdk 안에 jre path로 옴김 톰캣 다운 받았을 때 webapps 안에 있는 manager, host-manager 폴더가 있어야함그리고 사용자를 추가 시켜주어야 하는데 .. tomcat-user.xml에서