摘要: 在主启动类上使用 @ImportResource 注解可以导入一个或多个 Spring 配置文件,并使其中的内容生效。 1. 以 helloworld 为例,在 net.biancheng.www.service 包下创建一个名为 PersonService 的接口,代码如下。 package ne 阅读全文
posted @ 2022-05-20 13:55 小强哥in 阅读(19) 评论(0) 推荐(0) 编辑