Back-End
springboot redis cache적용
https://yonguri.tistory.com/82 SpringBoot기반 Redis Cache 활용법 우리가 서비스를 개발할 때 백앤드 영역에서 Cache를 적극적으로 사용하게 되면 생각했던것 보다 더 드라마틱한 서비스 성능 개선을 가져올 수 있다(고 생각한다). 반대로 용도에 맞는 않는 정보나 서비스요청에.. yonguri.tistory.com https://velog.io/@minholee_93/Redis-Cache-with-Spring-Boot-nwk5bq3ohu
spring boot whitelabel error page h2 console
// .... import org.h2.server.web.WebServlet; import org.springframework.boot.web.servlet.ServletRegistrationBean; import org.springframework.context.annotation.Bean; @SpringBootApplication public class Application { // ... @Bean public ServletRegistrationBean h2servletRegistration() { ServletRegistrationBean registration = new ServletRegistrationBean(new WebServlet()); registration.addUrlMapping..
spring message source 커스텀
https://stackoverflow.com/questions/10623388/override-springmessage-tag-with-database-values
직접 작성해보는 java map, filter, reduce, curry
javascript 함수형 프로그래밍을 스터디 후 java버전 메소드 몇개 작성. public static List filter(Predicate predi, List list) { if(list==null) return null; List result = new ArrayList(); list.forEach(value->{ if(predi.test(value)) result.add(value); }); return result; } public static List map(Function f, List list) { if(list==null) return null; List result = new ArrayList(); list.forEach(value->{ result.add(f.apply(value..
Apache Tomcat CORS설정
http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#CORS_Filter 오픈api개발하다보면 발생할 수 있는 크로스도메인 에러Access to Script at '서버에 요청 한 url' from origin '요청자의 도메인' has been blocked by CORS policy: No "Access-Control-Allow-Origin' header is present on the requested resource. Origin '요청자의 도메인' is therefore not allowed access. 네이버검색하면 SpringFramework을 통한 CORS설정이 대부분인데, 현재환경이 스프링이 아니라서..더 찾아보다가 tomcat에서 ..
tomcat 실제 deploy경로, _jsp.java 파일 경로, jsp컴파일 경로.
jsp컴파일 경로 : catalina.base경로에서 work폴더jsp컴파일 경로 : catalina.base경로에서 wtpwebapps폴더 sample : C:\project\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps * 이클립스에서 확인방법Servers(서버) 더블클릭 -> Open launch configuaration -> Arguments -> VM Arguments -> Dcatalina.base확인