Spring 常用包
Spring 提供了一系列常用的包,这些包简化了应用程序的开发和维护,包括以下类别:
核心包:
- org.springframework.beans:提供bean管理功能,包括bean创建、注入和生命周期管理。
- org.springframework.context:提供应用程序上下文管理功能,包括bean装配和消息发布/订阅。
- org.springframework.core:提供基础实用程序,如属性访问、事件发布和国际化支持。
Web 包:
- org.springframework.web.servlet:提供Web 应用程序开发功能,包括请求处理、视图解析和会话管理。
- org.springframework.web.context:提供Web 应用程序上下文管理功能,包括WebApplicationContext 的实现。
数据访问包:
- org.springframework.orm:提供对象关系映射 (ORM) 集成支持,包括JdbcTemplate和HibernateTemplate。
- org.springframework.data:提供对 NoSQL 数据库和 Spring Data Repositories 的支持。
测试包:
- org.springframework.test:提供用于单元测试和集成测试的实用程序和注解。
- org.springframework.boot.test:提供用于 Spring Boot 应用程序测试的实用程序和注解。
4.44MB
文件大小:
评论区