08 2018 档案
摘要:maven具有多模块聚合功能,即可以以父子关系体现模块间的关系,并关联各模块。 首先介绍一下具有继承依赖关系模块(多个模块不仅与公共模块关联,彼此间也存在相互依赖的关系)。 父模块的定义: 1.packaging必须是pom类型 2.modules部分声明子模块 3.properties部分声明公用
阅读全文
摘要:切面配置@Component @Aspect public class HelloAspect { @Pointcut("execution(* com.educationtek.daoxue.controller.*.*(..))") public void pointCut() { } @Before("pointCut()") public vo...
阅读全文
摘要:拦截器配置 @Configurationpublic class SpringWebConfig extends WebMvcConfigurerAdapter { @Bean AuthInterceptor interfaceAuthInterceptor() { return new AuthInterceptor(); } @Overri...
阅读全文
摘要:当 Web 应用集成 Spring 容器后,代表 Spring 容器的WebApplicationContext对象将以 WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE 为键存放在ServletContext的属性列表中。您当
阅读全文

浙公网安备 33010602011771号