随笔分类 -  springboot

摘要:@ControllerAdvice @Slf4j public class GlobalDefultExceptionHandler { /** *ResponseStatus 返回状态 */ @ExceptionHandler(Exception.class) @ResponseBody @ResponseStatus(HttpStatus... 阅读全文
posted @ 2018-08-06 10:52 kasse 阅读(1038) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-08-06 10:09 kasse 阅读(106) 评论(0) 推荐(0)
摘要:@Autowired private ApplicationContext applicationContext; //将applicationContext转换为ConfigurableApplicationContext ConfigurableApplicationContext configurableApplicationContext = (Config... 阅读全文
posted @ 2018-08-06 10:08 kasse 阅读(1264) 评论(0) 推荐(0)
摘要:DataSourceTransactionManager transactionManager = new DataSourceTransactionManager(dataSource); TransactionTemplate transactionTemplate = new TransactionTemplate(transactionManager); ... 阅读全文
posted @ 2018-08-06 10:06 kasse 阅读(186) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-04-03 08:42 kasse 阅读(114) 评论(0) 推荐(0)
摘要:package com.crunii.micro.service.dms.Wrapper; import com.crunii.micro.service.dms.xtshUtil.FileUtil; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java... 阅读全文
posted @ 2017-12-13 10:15 kasse 阅读(271) 评论(0) 推荐(0)
摘要:拦截器类 注册拦截器 前台取值 阅读全文
posted @ 2016-12-16 10:00 kasse 阅读(3608) 评论(0) 推荐(0)