# spring-subway **Repository Path**: secondriver/spring-subway ## Basic Information - **Project Name**: spring-subway - **Description**: 基于Spring Framework杂物库,持续添加关于JavaEE的集成示例 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 0 - **Created**: 2015-04-10 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ``` _____ _ _____ __ / ___/____ _____(_)___ ____ _ / ___/__ __/ /_ _ ______ ___ __ \__ \/ __ \/ ___/ / __ \/ __ `/ \__ \/ / / / __ \ | /| / / __ `/ / / / ___/ / /_/ / / / / / / / /_/ / ___/ / /_/ / /_/ / |/ |/ / /_/ / /_/ / /____/ .___/_/ /_/_/ /_/\__, / /____/\__,_/_.___/|__/|__/\__,_/\__, / /_/ /____/ /____/ ``` 该项目是一个有关Spring的各个主题的代码片段,配置文件,功能实践的集合 ### 目录介绍 + `src/main/java, src/main/aspect, src/main/groovy` 目录下根据类型和主题将代码归档至不同的包,代码片段提供`main`测试 + `src/main/resources` 是整个项目的配置文件集中地 + `.` 放置一些全局配置文件 + `configure` 归档依赖框架的配置 + [`integration`][1] 归档根据不同主题进行分片的Spring配置 + `dev` 归档项目中的web应用示例配置 + `message` 归档是国际化文件 + [`script`][2] 归档脚本文件 + `src/test/java` 目录下根据测试的主题类型分包,进行单元测试 + [`src/test/resources`][3] 归档测试依赖的Spring配置 ### 涉及范围 + 缓存实现,`Spring Cache`集成 + [`src/main/java/extract/jodd/cache`](http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/java/extract/jodd/cache) + [`src/main/java/secondriver/springsubway/example/cache/support`](http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/java/secondriver/springsubway/example/cache/support) + [`src/main/resources/integration/spring-cache*.xml`][1] + Spring AOP 和 Aspectj 配置 + [`src/main/java/secondriver/springsubway/example/aop`](http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/java/secondriver/springsubway/example/aop) + [`src/main/resources/integration/spring-aop*.xml`][1] + 一个实现SpringMVC的注解方式的请求方法执行鉴权机制 + [`src/main/java/secondriver/springsubway/example/auc`](http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/java/secondriver/springsubway/example/auc) + 基于Java Bean Validation对Request参数校验实现集成Spring + [设计思路](http://aiilive.blog.51cto.com/1925756/1661317) + [`src/main/java/secondriver/springsubway/example/rpv`](http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/java/secondriver/springsubway/example/rpv) + SQLFactoryBean使用Spring来管理SQL脚本,语句 + [SQLFactoryBean实现 `src/main/java/secondriver/springsubway/scafford`](http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/java/secondriver/springsubway/scafford) + [测试用例 TestSQLFactoryBean](http://git.oschina.net/secondriver/spring-subway/tree/master/src/test/java/secondriver/springsubway/scafford) + [测试配置文件 spring-test-context.xml][3] + Quartz1.x和Quartz2.x 与Spring集成 + [Quartz1.x与Spring集成 spring-quartz1.x.xml][1] + [Quartz2.x与Spring集成 spring-quartz2.x.xml][1] + [Quartz1.x与Spring集成测试 spring-job-test-context-quartz1.x.xml][3] + [Quartz2.x与Spring集成测试 spring-job-test-context-quartz2.x.xml][3] + [通过Job,Trigger,Scheduler看Quartz2.x作业调度框架](http://aiilive.blog.51cto.com/1925756/1662253) + Spring Event机制示例 + [Spring Event TestSQLFactoryBean](http://git.oschina.net/secondriver/spring-subway/tree/master/src/test/java/secondriver/springsubway/event) + [Spring Event 配置 spring-event-test-context.xml][3] + atomikos,JTA集成Spring实现分布式事务 + [分布式事务 `src/main/java/secondriver/springsubway/example/jta`](http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/java/secondriver/springsubway/example/jta) + [分布式事务JTA实现Atomikos与Spring集成实践](http://aiilive.blog.51cto.com/1925756/1658102) + Redis Spring集成 + [Redis集成配置 `integration/redis-integration.xml`][1] + [Redis集成配置 `dev/redis-integration.xml`][5] + [Redis使用示例以及Lua脚本应用 `src/main/java/secondriver/springsubway/example/dao`](http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/java/secondriver/springsubway/example/dao) + [使用Spring Data Redis操作Redis](http://aiilive.blog.51cto.com/1925756/1627455) + Redis消息服务集成 + [Redis消息监听 `src/main/test/secondriver/springsubway/demo/redis`](http://git.oschina.net/secondriver/spring-subway/tree/master/src/test/java/secondriver/springsubway/demo/redis) + [Redis消息服务配置 `redis-integration.xml`][1] + Jasypt加密框架Spring集成 + [Jasypt与Spring集成配置 `jasypt-integration.xml`][1] + [jasypt与Spring结合使用说明](http://aiilive.blog.51cto.com/1925756/1420903) + [JavaWeb应用配置文件安全解决方案](http://aiilive.blog.51cto.com/1925756/1532884) + 嵌入式数据库Spring集成 + [Embedded Database Spring Integration `embedded-database-integration.xml`][1] + Spring属性编辑器实现示例 + [密码属性编辑器 `src/main/test/secondriver/springsubway/demo/editor`](http://git.oschina.net/secondriver/spring-subway/tree/master/src/test/java/secondriver/springsubway/demo/editor) + [密码属性编辑器注册配置 `spring-editor-test-context.xml`][3] + Spring MVC配置 + [Spring MVC 配置 `dev/spring-web-servlet.xml`][5] + [Spring MVC Controller Bean 配置 `dev/spring-web-controller.xml`][5] + [Spring MVC Web应用 `WEB-INF/web.xml`](http://git.oschina.net/secondriver/spring-subway/tree/master/src/webapp/WEB-INF) + Spring热切换目标数据源 + [TestTargetSource 代码示例](http://git.oschina.net/secondriver/spring-subway/tree/master/src/test/java/secondriver/springsubway/demo/target) + Maven 管理 + [依赖的jar配置 `pom.xml`](http://git.oschina.net/secondriver/spring-subway/tree/master/pom.xml) + 更多 + [集成配置目录 `main/java/resource/integration` ][1] + [开发配置目录 `main/java/resource/dev` ][5] + `main/java/resource/META-INF` 关于JPA配置 + [测试Spring集成配置目录 `main/test/resource` ][3] ### 说明 + 整个工程属于日积月累形成的,比较散乱,分类不是特别恰当。 + 涉及到使用Spring的较多方面,上面说明不包含所有,在配置目录和代码包中可以较为完整展现 + 使用JDK1.7+, Maven管理依赖第三方包(特别多),配置文件可以作为使用Spring开发的参考 [1]:http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/resources/integration "Integration" [2]:http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/resources/script "Script" [3]:http://git.oschina.net/secondriver/spring-subway/tree/master/src/test/resources "Test Resouces" [4]:http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/resources "Main Resouces" [5]:http://git.oschina.net/secondriver/spring-subway/tree/master/src/main/resources/dev "Dev"