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 | /* * SampleContoller by using annotations */ package org.zerock.web; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class SampleController { private static final Logger logger = // check the log LoggerFactory.getLogger(SampleController.class); @RequestMapping("AAA") public void AAA(){ logger.info("################## BBB ##################"); } @RequestMapping("BBB") public void BBB(){ logger.info("################## BBB ##################"); } } | cs |
'문돌이의 IT > Spring' 카테고리의 다른 글
[Spring] how to use redirect: (0) | 2017.02.04 |
---|---|
[Spring] how to use ModelAttribute (0) | 2017.02.03 |
[Spring]servlet-context.xml (0) | 2016.12.20 |
[Spring]모델 2 방식과 스프링 mvc (0) | 2016.12.14 |
[Spring]myBatis connection test (0) | 2016.12.13 |