有一个地方记不住什么时候用什么

来源:5-1 课程总结

qq_ibertine_0

2020-12-05 16:51:55

​就是http://img.mukewang.com/climg/5fcb49f809c5609b12460582.jpg

这个地方,我看视频在讲解不同用法的时候更换过,有些记不住

写回答

1回答

好帮手慕阿满

2020-12-05

同学你好,同学可以保存一份全面的头文件,用到的时间将其复制到文件中,如下

?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"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd">

如上头文件中,是标签的约束文件,例如bean是如下是bean标签的约束文件,要使用<bean>标签,必须引入如下内容。

http://img.mukewang.com/climg/5fcb5789098ab6e305320045.jpg

相应的要是用aop标签,必须引入aop的约束文件。

祝学习愉快~


0

0 学习 · 8263 问题

查看课程