随笔分类 - springboot
摘要:GET请求及POST表单请求(RequestParam和PathVariable参数): -- 配置Converter<String, T>转换器实现参数转换, 该转换器bean会注入到spring mvc的参数解析器中(ParameterConversionService) POST-applic
阅读全文
摘要:事务的传播机制 名词解释: Spring 事务传播机制是指,包含多个事务的方法在相互调用时,事务是如何在这些方法间传播的。 既然是“事务传播”,所以事务的数量应该在两个或两个以上,Spring 事务传播机制的诞生是为了规定多个事务在传播过程中的行为的。比如方法 A 开启了事务,而在执行过程中又调用了
阅读全文
摘要:interface public interface MallTypeHandle { void check(Store store); MallType[] supports(); } @Component public class JDMallTypeHandle implements Mall
阅读全文
摘要:SpringBoot工厂模式 继承ApplicationContextAware MallService public interface MallService { /** * 商城类型 * * @return 商城类型代码 */ String mallType(); } register @Sl
阅读全文