百度360必应搜狗淘宝本站头条
当前位置:网站首页 > 技术文章 > 正文

Spring框架自学之路——简易入门(spring框架视频讲解)

ccwgpt 2024-09-14 00:10 30 浏览 0 评论

目录

  • 目录
  • 介绍
  • Spring中的IoC操作
  • IoC入门案例
  • Spring的bean管理(配置文件)
  • Bean实例化的方式
  • Bean标签的常用属性
  • 属性注入
  • 使用有参构造函数注入属性
  • 使用set方法注入属性
  • 注入对象类型属性
  • p名称空间注入属性
  • 注入复杂类型属性
  • IoC和DI的区别
  • Spring的bean管理(注解)
  • Spring注解开发准备
  • 注解创建对象
  • 注解注入属性

介绍

Spring框架是个轻量级的Java EE框架。所谓轻量级,是指不依赖于容器就能运行的。Struts、Hibernate也是轻量级的。

轻量级框架是相对于重量级框架而言的,重量级框架必须依赖特定的容器,例如EJB框架就必须运行在Glassfish、JBoss等支持EJB的容器中,而不能运行在Tomcat中。——《Java Web整合开发 王者归来》

Spring以IoC、AOP为主要思想,其中IoC,Inversion of Control 指控制反转或反向控制。在Spring框架中我们通过配置创建类对象,由Spring在运行阶段实例化、组装对象。AOP,Aspect Oriented Programming,面向切面编程,其思想是在执行某些代码前执行另外的代码,使程序更灵活、扩展性更好,可以随便地添加、删除某些功能。Servlet中的Filter便是一种AOP思想的实现。

Spring同时也是一个“一站式”框架,即Spring在JavaEE的三层架构[表现层(Web层)、业务逻辑层(Service层)、数据访问层(DAO层)]中,每一层均提供了不同的解决技术。如下:

  • 表现层(Web层):Spring MVC
  • 业务逻辑层(Service层):Spring的IoC
  • 数据访问层(DAO层):Spring的jdbcTemplate

Spring中的IoC操作

将对象的创建交由Spring框架进行管理。

IoC操作分为:IoC配置文件方式和IoC的注解方式。

IoC入门案例

(1)导入Spring框架中的相关jar包,这里只导入Spring的Core模块(Core模块是框架的核心类库)下的jar包(使用IoC的基本操作,并不需要导入Spring的所有jar包,只导入spring-beans、spring-core、spring-context、spring-expression这4个jar包),以及 支持日志输出的 commons-logging 和 log4j 的jar包;

(2)创建一个普通的Java类,并在该类中创建方法,如下:

User.java

package com.wm103.ioc;

/**

* Created by DreamBoy on 2018/3/17.

*/

public class User {

public void add() {

System.out.println("User Add Method.");

}

@Override

public String toString() {

return "This is a user object.";

}

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

(3)创建Spring的配置文件,进行Bean的配置

Spring的核心配置文件名称和位置不是固定的。但官方件建议将该核心配置文件放在src目录下,且命名为 applicationContext.xml。

这里为了方便,将核心配置文件放在src目录下,并命名为 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"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

<bean id="user" class="com.wm103.ioc.User"></bean>

</beans>

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

(4)编写测试类进行测试,通过配置文件创建类对象

TestIoC.java

package com.wm103.ioc;

import org.junit.Test;

import org.springframework.context.ApplicationContext;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**

* Created by DreamBoy on 2018/3/17.

*/

public class TestIoc {

@Test

public void runUser() {

// 1. 加载Spring配置文件,根据创建对象

ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

// 2. 得到配置创建的对象

User user = (User) context.getBean("user");

System.out.println(user);

user.add();

}

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21

Spring的bean管理(配置文件)

Bean实例化的方式

在Spring中通过配置文件创建对象。

Bean实例化三种方式实现:

(1)使用类的无参数构造创建,如:

<!-- 等同于 user = new com.wm103.ioc.User(); -->

<bean id="user" class="com.wm103.ioc.User"></bean>

  • 1
  • 2

(2)使用静态工厂创建

如果一个Bean不能通过new直接实例化,而是通过工厂类的某个静态方法创建的,需要把<bean>的class属性配置为工厂类。如:

<!-- 等同于 user = com.wm103.ioc.UserFactory.createInstance(); -->

<bean id="user" class="com.wm103.ioc.UserFactory" factory-method="createInstance"></bean>

  • 1
  • 2

(3)使用实例工厂创建

如果一个Bean不能通过new直接实例化,而是通过工厂类的某个实例方法创建的,需要先配置工厂的<bean>标签,然后在需要创建的对象的bean标签的factory-bean属性配置为工厂类对象,factory-method属性配置为产生实例的方法。如:

<!-- 等同于 userFactory = new com.wm103.ioc.UserFactory(); -->

<bean id="userFactory" class="com.wm103.ioc.UserFactory"></bean>

<!-- 等同于 user = userFactory.createInstance(); -->

<bean id="user" factory-bean="userFactory" factory-method="createInstance"></bean>

  • 1
  • 2
  • 3
  • 4

Bean标签的常用属性

(1)id属性:用于指定配置对象的名称,不能包含特殊符号。

(2)class属性:创建对象所在类的全路径。

(3)name属性:功能同id属性一致。但是在name属性值中可以包含特殊符号。

(4)scope属性

  • singleton:默认值,单例
  • 单例模式下,在程序下只有一个实例。非单态模式下,每次请求该Bean,都会生成一个新的对象。
  • prototype:多例
  • request:创建对象后将对象存放到request域
  • session:创建对象后将对象存放到session域
  • globalSession:创建对象后将对象存放到globalSession域

属性注入

属性注入指创建对象时,向类对象的属性设置属性值。

在Spring框架中支持set方法注入和有参构造函数注入,即创建对象后通过set方法设置属性或采用有参构造函数创建对象并初始化属性。

使用有参构造函数注入属性

案例:

Student.java 提供有参的构造方法

package com.wm103.ioc;

public class Student {

private String name;

public Student(String name) {

this.name = name;

}

@Override

public String toString() {

return "Student{" +

"name='" + name + '\'' +

'}';

}

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16

bean的配置:

<bean id="student" class="com.wm103.ioc.Student">

<constructor-arg name="name" value="DreamBoy"></constructor-arg>

</bean>

  • 1
  • 2
  • 3

创建Student对象进行测试:

@Test

public void runStudent() {

// 1. 加载Spring配置文件,根据创建对象

ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

// 2. 得到配置创建的对象

Student student = (Student) context.getBean("student");

System.out.println(student);

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

使用set方法注入属性

案例:

Teacher.java 提供属性的set方法

package com.wm103.ioc;

public class Teacher {

private String name;

public void setName(String name) {

this.name = name;

}

@Override

public String toString() {

return "Teacher{" +

"name='" + name + '\'' +

'}';

}

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

bean的配置:

<bean id="teacher" class="com.wm103.ioc.Teacher">

<property name="name" value="Teacher Wu"></property>

</bean>

  • 1
  • 2
  • 3

创建Teacher对象进行测试:

@Test

public void runTeacher() {

// 1. 加载Spring配置文件,根据创建对象

ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

// 2. 得到配置创建的对象

Teacher teacher = (Teacher) context.getBean("teacher");

System.out.println(teacher);

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

注入对象类型属性

以三层架构中的service层和dao层为例,为了让service层使用dao层的类创建的对象,需要将dao对象注入到service层类中。具体实现过程中如下:

(1)创建service类、dao层接口、dao类,如下:

UserService.java

package com.wm103.exp;

public class UserService {

private UserDao userDao; // 声明为接口类型,降低service层与dao层的耦合度,不依赖于dao层的具体实现

public void setUserDao(UserDao userDao) {

this.userDao = userDao;

}

public void add() {

System.out.println("UserService Add...");

this.userDao.add();

}

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13

UserDao.java

package com.wm103.exp;

/**

* 暴露给service层的接口

* Created by DreamBoy on 2018/3/17.

*/

public interface UserDao {

void add();

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

UserDaoImpl.java

package com.wm103.exp;

/**

* 接口UserDao的具体实现

* Created by DreamBoy on 2018/3/17.

*/

public class UserDaoImpl implements UserDao {

@Override

public void add() {

System.out.println("UserDaoImpl Add...");

}

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

(2)在配置文件中注入关系,如下:

<!-- 配置service和dao对象 -->

<!-- 因为service依赖于dao,所以先进行dao对象的bean配置 -->

<bean id="userDaoImpl" class="com.wm103.exp.UserDaoImpl"></bean>

<bean id="userService" class="com.wm103.exp.UserService">

<!--

注入dao对象

name属性值为:service中的某一属性名称

ref属性值为:被引用的对象对应的bean标签的id属性值

-->

<property name="userDao" ref="userDaoImpl"></property>

</bean>

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

(3)创建测试方法进行测试,如下:

@Test

public void runUserService() {

// 1. 加载Spring配置文件,根据创建对象

ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

// 2. 得到配置创建的对象

UserService userService = (UserService) context.getBean("userService");

userService.add();

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

p名称空间注入属性

之前提到了一种set方法的属性注入方式,这里将介绍另一种属性注入的方式,名为 p名称空间注入。对比set方法的属性注入方式,核心配置文件配置修改如下:

<?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:p="http://www.springframework.org/schema/p"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

<bean id="teacher" class="com.wm103.ioc.Teacher" p:name="Teacher Wu"></bean>

</beans>

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

注入复杂类型属性

对象注入复杂类型属性,如数组、List、Map、Properties。

案例:

PropertyDemo.java

package com.wm103.ioc;

import java.util.List;

import java.util.Map;

import java.util.Properties;

public class PropertyDemo {

private String[] arrs;

private List<String> list;

private Map<String, String> map;

private Properties properties;

public String[] getArrs() {

return arrs;

}

public void setArrs(String[] arrs) {

this.arrs = arrs;

}

public List<String> getList() {

return list;

}

public void setList(List<String> list) {

this.list = list;

}

public Map<String, String> getMap() {

return map;

}

public void setMap(Map<String, String> map) {

this.map = map;

}

public Properties getProperties() {

return properties;

}

public void setProperties(Properties properties) {

this.properties = properties;

}

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44

bean配置文件,内容如下:

<?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">

<bean id="prop" class="com.wm103.ioc.PropertyDemo">

<!-- 注入数组 -->

<property name="arrs">

<list>

<value>Value 1 of Array</value>

<value>Value 2 of Array</value>

<value>Value 3 of Array</value>

</list>

</property>

<!-- 注入List集合 -->

<property name="list">

<list>

<value>Value 1 of List</value>

<value>Value 2 of List</value>

<value>Value 3 of List</value>

</list>

</property>

<!-- 注入Map集合 -->

<property name="map">

<map>

<entry key="key1" value="Value 1 of Map"></entry>

<entry key="key2" value="Value 2 of Map"></entry>

<entry key="key3" value="Value 3 of Map"></entry>

</map>

</property>

<!-- 注入Properties -->

<property name="properties">

<props>

<prop key="username">root</prop>

<prop key="password">123456</prop>

</props>

</property>

</bean>

</beans>

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38

创建PropertyDemo对象进行测试:

@Test

public void runPropertyDemo() {

ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

PropertyDemo pd = (PropertyDemo) context.getBean("prop");

System.out.println(pd);

System.out.println(Arrays.toString(pd.getArrs()));

System.out.println(pd.getList());

System.out.println(pd.getMap());

System.out.println(pd.getProperties());

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

IoC和DI的区别

IoC,控制反转,将传统的对象创建流程转变为交由框架进行创建和管理。在Spring中,对象的创建交给Spring进行配置。它包括依赖注入。

DI,依赖注入,向类的属性设置值。

IoC与DI的关系:依赖注入不能单独存在,需要在IoC基础之上完成操作。

Spring的bean管理(注解)

注解是代码中特殊的标记,使用注解可以完成特定的功能。注解可以使用在类、方法或属性上,写法如:@注解名称(属性名称=属性值)。

Spring的bean管理注解方式,案例如下。

Spring注解开发准备

(1)导入jar包:

  • 导入基本的jar包:commons-logging、log4j、spring-beans、spring-context、spring-core、spring-expression相关jar包。
  • 导入AOP的jar包:spring-aopjar包。

(2)创建类、方法

User.java

package com.wm103.anno;

import org.springframework.stereotype.Component;

public class User {

public void add() {

System.out.println("User Add Method.");

}

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

(3)创建Spring配置文件,引入约束;并开启注解扫描

bean1.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 http://www.springframework.org/schema/context/spring-context.xsd">

<!--

开启注解扫描

(1)到包中扫描类、方法、属性上是否有注解

-->

<context:component-scan base-package="com.wm103"></context:component-scan>

<!--

(2)只扫描属性上的注解

-->

<!--<context:annotation-config></context:annotation-config>-->

</beans>

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

注解创建对象

在创建对象的类上面使用注解实现,如:

@Component(value="user")

public class User {

  • 1
  • 2

创建测试类 TestAnno.java和测试方法,如:

package com.wm103.anno;

import org.junit.Test;

import org.springframework.context.ApplicationContext;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAnno {

@Test

public void runUser() {

ApplicationContext context = new ClassPathXmlApplicationContext("bean1.xml");

User user = (User) context.getBean("user");

user.add();

}

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

除了上述提到的 @Component注解外,Spring中还提供了@Component的3个衍生注解,其功能就目前来说是一致的,均是为了创建对象。

  • @Controller :WEB层
  • @Service :业务层
  • @Repository :持久层
  • 以单例或多实例方式创建对象,默认为单例,多例对象设置注解如下:

@Component(value="user")

@Scope(value="prototype")

public class User {

  • 1
  • 2
  • 3

注解注入属性

案例:创建Service类和Dao类,并在Service中注入Dao对象。如下:

(1)创建Dao和Service对象

UserDao.java

package com.wm103.anno;

import org.springframework.stereotype.Repository;

@Repository(value="userDao")

public class UserDao {

public void add() {

System.out.println("UserDao Add Method.");

}

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

UserService.java

package com.wm103.anno;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service(value="userService")

public class UserService {

public void add() {

System.out.println("UserService Add Method.");

userDao.add();

}

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13

(2)在Service类中定义UserDao类型的属性,并使用注解完成对象的注入

@Autowired:自动注入或自动装配,是根据类名去找到类对应的对象来完成注入的。

@Autowired

private UserDao userDao;

  • 1
  • 2

或者 @Resource

@Resource(name="userDao")

private UserDao userDao;

  • 1
  • 2

其中该注解的name属性值为注解创建Dao对象的value属性的值。

这两种注解方式都不一定要为需要注入的属性定义set方法。

(3)创建测试方法

@Test

public void runUserService() {

ApplicationContext context = new ClassPathXmlApplicationContext("bean1.xml");

UserService userService = (UserService) context.getBean("userService");

userService.add();

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

注:配置文件和注解混合使用

1)创建对象的操作一般使用配置文件方式实现;

2)注入属性的操作一般使用注解方式实现。

相关推荐

十分钟让你学会LNMP架构负载均衡(impala负载均衡)

业务架构、应用架构、数据架构和技术架构一、几个基本概念1、pv值pv值(pageviews):页面的浏览量概念:一个网站的所有页面,在一天内,被浏览的总次数。(大型网站通常是上千万的级别)2、u...

AGV仓储机器人调度系统架构(agv物流机器人)

系统架构层次划分采用分层模块化设计,分为以下五层:1.1用户接口层功能:提供人机交互界面(Web/桌面端),支持任务下发、实时监控、数据可视化和报警管理。模块:任务管理面板:接收订单(如拣货、...

远程热部署在美团的落地实践(远程热点是什么意思)

Sonic是美团内部研发设计的一款用于热部署的IDEA插件,本文其实现原理及落地的一些技术细节。在阅读本文之前,建议大家先熟悉一下Spring源码、SpringMVC源码、SpringBoot...

springboot搭建xxl-job(分布式任务调度系统)

一、部署xxl-job服务端下载xxl-job源码:https://gitee.com/xuxueli0323/xxl-job二、导入项目、创建xxl_job数据库、修改配置文件为自己的数据库三、启动...

大模型:使用vLLM和Ray分布式部署推理应用

一、vLLM:面向大模型的高效推理框架1.核心特点专为推理优化:专注于大模型(如GPT-3、LLaMA)的高吞吐量、低延迟推理。关键技术:PagedAttention:类似操作系统内存分页管理,将K...

国产开源之光【分布式工作流调度系统】:DolphinScheduler

DolphinScheduler是一个开源的分布式工作流调度系统,旨在帮助用户以可靠、高效和可扩展的方式管理和调度大规模的数据处理工作流。它支持以图形化方式定义和管理工作流,提供了丰富的调度功能和监控...

简单可靠高效的分布式任务队列系统

#记录我的2024#大家好,又见面了,我是GitHub精选君!背景介绍在系统访问量逐渐增大,高并发、分布式系统成为了企业技术架构升级的必由之路。在这样的背景下,异步任务队列扮演着至关重要的角色,...

虚拟服务器之间如何分布式运行?(虚拟服务器部署)

  在云计算和虚拟化技术快速发展的今天,传统“单机单任务”的服务器架构早已难以满足现代业务对高并发、高可用、弹性伸缩和容错容灾的严苛要求。分布式系统应运而生,并成为支撑各类互联网平台、企业信息系统和A...

一文掌握 XXL-Job 的 6 大核心组件

XXL-Job是一个分布式任务调度平台,其核心组件主要包括以下部分,各组件相互协作实现高效的任务调度与管理:1.调度注册中心(RegistryCenter)作用:负责管理调度器(Schedule...

京东大佬问我,SpringBoot中如何做延迟队列?单机与分布式如何做?

京东大佬问我,SpringBoot中如何做延迟队列?单机如何做?分布式如何做呢?并给出案例与代码分析。嗯,用户问的是在SpringBoot中如何实现延迟队列,单机和分布式环境下分别怎么做。这个问题其实...

企业级项目组件选型(一)分布式任务调度平台

官网地址:https://www.xuxueli.com/xxl-job/能力介绍架构图安全性为提升系统安全性,调度中心和执行器进行安全性校验,双方AccessToken匹配才允许通讯;调度中心和执...

python多进程的分布式任务调度应用场景及示例

多进程的分布式任务调度可以应用于以下场景:分布式爬虫:importmultiprocessingimportrequestsdefcrawl(url):response=re...

SpringBoot整合ElasticJob实现分布式任务调度

介绍ElasticJob是面向互联网生态和海量任务的分布式调度解决方案,由两个相互独立的子项目ElasticJob-Lite和ElasticJob-Cloud组成。它通过弹性调度、资源管控、...

分布式可视化 DAG 任务调度系统 Taier 的整体流程分析

Taier作为袋鼠云的开源项目之一,是一个分布式可视化的DAG任务调度系统。旨在降低ETL开发成本,提高大数据平台稳定性,让大数据开发人员可以在Taier直接进行业务逻辑的开发,而不用关...

SpringBoot任务调度:@Scheduled与TaskExecutor全面解析

一、任务调度基础概念1.1什么是任务调度任务调度是指按照预定的时间计划或特定条件自动执行任务的过程。在现代应用开发中,任务调度扮演着至关重要的角色,它使得开发者能够自动化处理周期性任务、定时任务和异...

取消回复欢迎 发表评论: