applicationContext.xml

applicationContext.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
https://www.springframework.org/schema/context/spring-context.xsd">
<!-- 读取外部properties配置文件,需要一个新的命名空间context -->
<!--<context:property-placeholder location="classpath:jdbc.properties"/>-->
<!-- 加载所有配置文件 -->
<context:property-placeholder location="classpath*:*.properties"/>
<!--
配置Spring注解扫描包
扫描com.xxx 包及子包下的所有注解
-->
<context:component-scan base-package="com.xxx"/>
</beans>
posted @   莱布尼兹纪念馆-馆长  阅读(11)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端
点击右上角即可分享
微信分享提示