级联选择 获取树 List<DepList> treeList = new ArrayList<>(); List<DepList> originalList = baseMapper.getDepList(); for (DepList d : originalList) { if (d.getParentId() == 0 && ids.contains(d.getId())) { tr
spring boot启动流程(附图) spring boot启动流程1.加载autoconfig,(其中有个是:ServletWebServerFactoryAutoConfiguration,)内嵌了一个tomcat或者其他容器@Import({ ServletWebServerFactoryAutoConfiguration.BeanPostProcessorsRegistrar.class, ServletWebServerFactoryConfiguration.EmbeddedTomcat.class, ServletW
基于注解主动生成API日志 基于注解主动生成API日志第一次写博客写的不好请大家多多指导此功能用于记录标注该注解的用户的浏览记录,使用AOP来实现功能,切到对应注解后,获取当前请求的信息,然后再通过Event异步入库.1 首先是定义注解:@Target({ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @inter...