摘要: 包:spring的包都加上: 例子一: 用@Component让Spring容器管理此线程,Bean的范围必须是prototype,因此每个请求都会返回一个新实例,运行每个单独的线程 package com.adao.spring.config; import org.springframework 阅读全文
posted @ 2020-07-08 20:25 adao 阅读(930) 评论(0) 推荐(0) 编辑
摘要: 闲话省略 spring-config.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/ 阅读全文
posted @ 2020-07-08 20:00 adao 阅读(357) 评论(0) 推荐(0) 编辑