show the program call chains intuitively, for costing analyze
<dependency>
<groupId>com.github.xuqiu</groupId>
<artifactId>coswee</artifactId>
</dependency>
1, setup application.yml
coswee:
pointcut: within(com.yourcom..*)
2, boot up you app and visit yoursite/coswee like http://localhost:8080/coswee
@Test
public void testSynShiftcaseTask(){
synShiftcaseTask.synShiftcaseTask("SKPT");
CallChainServlet.writePage("/Users/yinzhennan/temp/tmpPage.html");
}
- add servlet to web.xml
<servlet>
<servlet-name>CosweeServlet</servlet-name>
<servlet-class>com.github.xuqiu.coswee.servlet.CallChainServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CosweeServlet</servlet-name>
<url-pattern>/coswee/*</url-pattern>
</servlet-mapping>
<!-- aop config -->
<aop:aspectj-autoproxy/>
<bean id="orderCheckInterceptor" class="com.github.xuqiu.coswee.aspect.CallChainAspect"/>