`
happyqing
  • 浏览: 3151785 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

spring4.x组件扫描component-scan所有过滤stereotype

阅读更多

在spring-framework-4.2.6.RELEASE-dist\spring-framework-4.2.6.RELEASE\libs\org\springframework\stereotype

下有这4个类

<context:component-scan base-package="com.urthink.*">
	<!-- 
	<context:include-filter type="annotation" expression="org.springframework.stereotype.Service"/>
	<context:include-filter type="annotation" expression="org.springframework.stereotype.Repository"/>
	<context:include-filter type="annotation" expression="org.springframework.stereotype.Component"/>
	 -->
	<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
</context:component-scan>

 

分享到:
评论

相关推荐

    org.springframework.web.servlet-3.1.4.RELEASE.jar 提供下载

    由于marven仓库中不存在此jar包 因此特地提供下载

    Spring AOP配置源码

    import org.springframework.stereotype.Component; @Component("userDAO") public class UserDao { public void say() { System.out.println("say method is called"); } public void smile() { System.out...

    springboot 基础简易实例, maven项目

    import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class SpringBootController { /** * 本地访问内容地址 :...

    spring-framework-reference-4.1.2

    What’s New in Spring Framework 4.x .................................................................................... 16 3. New Features and Enhancements in Spring Framework 4.0 .....................

    spring_MVC源码

    -- 自动扫描所有注解该路径 --&gt; 14. 15. &lt;context:property-placeholder location="classpath:/hibernate.properties" /&gt; 16. 17. 18. class="org.springframework.orm.hibernate3.annotation....

    spring-framework-reference4.1.4

    What’s New in Spring Framework 4.x .................................................................................... 16 3. New Features and Enhancements in Spring Framework 4.0 .....................

    spring framework4.3 20个jar包

    包含了spring4.3版本的所有jar包,用户可放心下载,绝对实用。 包含了spring4.3版本的所有jar包,用户可放心下载,绝对实用。

    spring框架

    java spring框架开发包spring-framework-4.2.2.RELEASE-dist

    SpringMVC-SSH全注解

    import org.springframework.stereotype.Service; import com.org.core.dao.UserDao; import com.org.core.entity.User; import com.org.core.service.UserService; /** *@Author:liangjilong *@Date:2014-2-25 ...

    基于MyEclipse搭建maven+springmvc整合图文教程(含源码0

    &lt;context:component-scan base-package="Controller" /&gt; &lt;bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt; &lt;property name="prefix" value="/WEB-INF/views/" /&gt; ...

    spring jdbctemplate 封裝

    import org.springframework.stereotype.Service; import com.ccc.db.JdbcTemplateManager; import com.ccc.db.page.OraclePageOptimize; import com.ccc.tag.page.Page; import com.ccc.tag.page.PagerTag; import...

    SpringBootTestApplication

    import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @SpringBootApplication ...

    spring各版本官方jar包

    spring官方jar包汇总,由于各jar包太大,无法上传,所以text里有官方下载的链接,版本包括2.1到最新的4.3.1版,请打开链接下载。

    利用AOP来变更工作线程的名字,来快速过滤出一次请求的所有日志.docx

    至于为什么要改threadName,为什么要用AOP,就不再铺垫赘述了。Talk is cheap, show me thecode。下面代码可以直接使用,拿走不谢。...import org.springframework.stereotype.Component; import java.util.Random;

    springmybatis

    MyBatis消除了几乎所有的JDBC代码和参数的手工设置以及结果集的检索。MyBatis使用简单的XML或注解用于配置和原始映射,将接口和Java的POJOs(Plan Old Java Objects,普通的Java对象)映射成数据库中的记录. orm...

    Spring2.5_基于注解驱动的SpringMVC

    import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Controller @...

    SpringTest

    SpringTest...................

    springmvc的一个简单实例

    import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public class ...

    stockticker-master

    import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import com.concretepage.vo.CalcInput; import com.concretepage.vo.Result; @Controller ...

Global site tag (gtag.js) - Google Analytics