今天原本想在Tomcat的server.xml里整合前后端分離的項(xiàng)目,然而怎么改在intellij IDEA里跑的時(shí)候都沒有效果。查了一下原來是Intellij IDEA會自...
今天原本想在Tomcat的server.xml里整合前后端分離的項(xiàng)目,然而怎么改在intellij IDEA里跑的時(shí)候都沒有效果。查了一下原來是Intellij IDEA會自...
Spring Security模塊 @EnableWebSecurity:啟用web安全性@EnableWebMvcSecurity:使用SpringMVC開發(fā)時(shí)可替代@En...
Spring自帶13個(gè)ViewResolver,能將邏輯視圖名轉(zhuǎn)為物理實(shí)現(xiàn): Spring表單綁定標(biāo)簽庫標(biāo)簽: Spring數(shù)據(jù)綁定標(biāo)簽:
@Configuration:定義DispatcherServlet應(yīng)用中的上下文。 @EnableWebMvc:確保能夠啟用SpringMVC @RequestMappin...
Spring使用AspectJ注解來聲明通知方法 @Pointcut 例子: 然后后在AspectJ其他注解中用"Performance()"替代,如@Before(“per...
@Component: 聲明類為component, 并告知Spring要為這個(gè)類創(chuàng)建bean。將bean標(biāo)識為標(biāo)識名:@Component("標(biāo)識名") @Named("標(biāo)...
三種主要裝配方式: 自動化配置 基于Java的顯示配置 基于XML的顯示配置對比了三種配置,覺得工作中應(yīng)盡可能使用自動化配置,避免顯示配置所帶來的維護(hù)成本。 如果確實(shí)需要顯示...
getProperty()有四種重載的變種形式: String getProperty(String key) String getProperty(String key, ...
Bean Life Cycle 2 important bean lifecycle callback methods: 1) initialization callback...
AOP(Aspect-Oriented Programming) 面向切面編程 Aspect: 橫切面的功能,抽象出類或接口,AOP編程重要的就是識別出橫切面功能。(方面,類...
Benefits of using spring framework: Using POJOs. you do not need an EJB container produ...
Dependency Injection(DI): DI flavor of Inversion of Control. The Inversion of Control(I...