2022-09-01
  • docker
  • docker build for multiplatform

    • docker image 를 cross compile 하기 위해서는 docker buildx 를 사용해야한다.
    • docker buildx 는 docker 19.03 버전부터 사용할 수 있다.

    2022-03-22
  • spring
  • test
  • JUnit Spring Context Configure

    @ContextHierarchy({
        @ContextConfiguration(
            locations = {
            "classpath:/something-config-app.xml",
            "classpath:/something-config-datasource.xml",
            "classpath:/META-INF/something/**/*.xml"
        },
            classes = {
                    SpringTest.CustomConfig.class
            }
        ),
        @ContextConfiguration({"classpath:/something-child-config.xml" })
    })
    public class SpringTest {
    }
    

    2022-02-18
  • tomcat
  • tomcat access log 남기기

    아래와 같은 설정을 보고, pattern 에 사용된 것들이 어떻게 세팅될지 궁금해하고있었는데…

    	<Host name="localhost" ...>
    		<Valve
    			className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt"
    			pattern='%{X-MY-NAME}i %t "%A" "%{PARAM-YOUR-NAME}r" "%r" "%s" "%T" %b "%{User-Agent}i" "%{Referer}i"' />
    	</Host>