3-Spring

Posted HolaWorld

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了3-Spring相关的知识,希望对你有一定的参考价值。

Spring 是分层的 Java SE/EE 应用 full-stack 轻量级开源框架,以 IoC(Inverse Of Control:反转控制)和 AOP(Aspect Oriented Programming:面向切面编程)为内核。

 

1.创建Maven工程,不选择骨架

2.在pom.xml中引入spring的依赖(https://mvnrepository.com/ 找Spring Context)

3.在resources中新建bean.xml

   

4.bean.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"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

    <!--把对象的创建交给spring来管理-->
    <!--    <bean id="iAccountService" class="org.example.service.impl.AccountServiceImpl"></bean>-->


</beans>

 

以上是关于3-Spring的主要内容,如果未能解决你的问题,请参考以下文章

谷歌浏览器调试jsp 引入代码片段,如何调试代码片段中的js

片段和活动之间的核心区别是啥?哪些代码可以写成片段?

VSCode自定义代码片段——.vue文件的模板

VSCode自定义代码片段6——CSS选择器

VSCode自定义代码片段——声明函数

VSCode自定义代码片段8——声明函数