| | |
| | | import com.yeshi.buwan.domain.DetailSystem; |
| | | import com.yeshi.buwan.funtv.FunTVUtil; |
| | | import com.yeshi.buwan.service.imp.ConfigService; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.PrintWriter; |
| | | import java.util.Map; |
| | | |
| | | @Controller |
| | |
| | | @Resource |
| | | private FunTVUtil funTVUtil; |
| | | |
| | | Logger logger = LoggerFactory.getLogger(TestController.class); |
| | | |
| | | @RequestMapping("config") |
| | | public void config() { |
| | | Map<String, String> map = configService.getConfigAsMap(new DetailSystem(44 + ""), 1); |
| | |
| | | funTVUtil.startParseAll(); |
| | | } |
| | | |
| | | @RequestMapping("logback") |
| | | public void logback(PrintWriter out) { |
| | | logger.error("测试"); |
| | | out.print("success"); |
| | | } |
| | | |
| | | |
| | | } |