spring 实践学习案例
#### 项目介绍
spring 实践学习案例,与其它组件结合如 mybatis、jpa、dubbo、redis、mongodb、memcached、kafka、rabbitmq、activemq、shiro等
#### 软件架构
基于Java 1.8
#### Spring 版本
- 5.0.8.RELEASE
#### 模块说明
- spring-data
- Spring 数据库操作,包括SpringJDBC、JPA、Mybatis、MongoDB
- spring-caches
- Spring 缓存,包括redis、ehcache、spring-cache、memcached、使用redis实现session共享 等。
- spring-docs
- Spring 文档生成工具,包括 Swagger
- spring-bussiness
- Spring 业务应用,包括 AOP、过滤器、定时任务、上传文件、国际化 等。
- spring-dubbo
- Spring 集成 Dubbo
- spring-mq
- Spring 集成 消息队列,包括 kafka、rabbitmq、activemq、rocketmq、redismq
- spring-auth
- Spring 权限认证,包括 Apache Shiro
spring boot 实践学习案例,与其它组件整合
spring boot 实践学习案例,与其它组件结合如 mybatis、jpa、dubbo、redis、mongodb、memcached、kafka、rabbitmq、activemq、elasticsearch、security、shiro等
#### Spring Boot 版本
- 2.0.3.RELEASE
#### 模块说明
- springboot-basic
- Spring Boot 基础知识,包括SpringBoot起步、配置详解、aop、filter、拦截器、监听、启动器、全局异常处理、外部Tomcat启动、HTTPS、监控 等。
- springboot-data
- Spring Boot 数据库操作,包括SpringJDBC、JPA、Mybatis注解版 & XML版、MongoDB。其中,每个版本都有其对应的多数据源解决方案。
- springboot-caches
- Spring Boot 缓存,包括redis、ehcache、spring-cache、memcached、使用redis实现session共享 等。
- springboot-templates
- Spring Boot 模板,包括thymeleaf、freemarker、jsp、表单校验 等。
- springboot-docs
- Spring Boot 文档生成工具,包括 Swagger、Spring RestDocs
- springboot-bussiness
- Spring Boot 业务应用,包括 定时任务、上传文件、发送邮件、Doc文档操作 等。
- springboot-ajax
- Spring Boot AJAX 跨域,包括 JSONP、Node.js与SpringBoot集成使用反向代理 等。
- springboot-websockets
- Spring Boot 使用 Websocket
- springboot-webflux
- Spring Boot 集成 WebFlux 开发反应式 Web 应用
- springboot-dubbo
- Spring Boot 集成 Dubbo 的三种方式
- springboot-search
- Spring Boot 集成 搜索引擎,包括 elasticsearch、solr
- springboot-mq
- Spring Boot 集成 消息队列,包括 kafka、rabbitmq、activemq、rocketmq、redismq
- springboot-auth
- Spring Boot 权限认证,包括 Apache Shiro、Spring Security
- springboot-cloud
- Spring Cloud 入门,包括 Eureka(服务注册与发现)、Config(配置中心)、Hystrix(断路器)、Bus(消息总线) 等
用Java实现23种设计模式
用Java实现23种设计模式
1. 创建型模式
工厂模式(Factory Pattern)
抽象工厂模式(Abstract Factory Pattern)
单例模式(Singleton Pattern)
建造者模式(Builder Pattern)
原型模式(Prototype Pattern)
2. 结构型模式
适配器模式(Adapter Pattern)
桥接模式(Bridge Pattern)
过滤器模式(Filter、Criteria Pattern)
组合模式(Composite Pattern)
装饰器模式(Decorator Pattern)
外观模式(Facade Pattern)
享元模式(Flyweight Pattern)
代理模式(Proxy Pattern)
3. 行为型模式
责任链模式(Chain of Responsibility Pattern)
命令模式(Command Pattern)
解释器模式(Interpreter Pattern)
迭代器模式(Iterator Pattern)
中介者模式(Mediator Pattern)
备忘录模式(Memento Pattern)
观察者模式(Observer Pattern)
状态模式(State Pattern)
空对象模式(Null Object Pattern)
策略模式(Strategy Pattern)
模板模式(Template Pattern)
访问者模式(Visitor Pattern)
4. J2EE 模式
MVC 模式(MVC Pattern)
业务代表模式(Business Delegate Pattern)
数据访问对象模式(Dao Pattern)
前端控制器模式(Front Controller Pattern)
拦截过滤器模式(Intercepting Filter Pattern)
服务定位器模式(Service Locator Pattern)
传输对象模式(Transfer Object Pattern)
生产者消费者模式(Producer Consumer Pattern)
Java代码示例,新特性、经典题目、工具类
# java_example
#### 项目介绍
关于Java的一些示例代码,一些新特性,以及一些工具包的使用
#### 模块
- Java 5、6、7、8的新特性
- Guava
- 一些经典题目的实现
- 一些测试、示例代码
fileUpload(兼容IE的Ajax上传图片)
fileUpload(兼容IE的Ajax上传图片),可兼容IE8,解决了ajaxfileupload.js无效的问题
ajaxfileupload.js,支持多文件上传
jQuery.extend({
createUploadIframe: function (id, uri) {
//create frame
var frameId = 'jUploadFrame' + id;
var iframeHtml = '<iframe id="' + frameId + '" name="' + frameId + '" top:-9999px; left:-9999px"';
if (window.ActiveXObject) {
if (typeof uri == 'boolean') {
iframeHtml += ' src="' + '[removed]false' + '"';
} else if (typeof uri == 'string') {
iframeHtml += ' src="' + uri + '"';
}
}
iframeHtml += ' />';
jQuery(iframeHtml).appendTo(document.body);
return jQuery('#' + frameId).get(0);
},
设计原则与设计模式
面向对象设计原则:面向对象设计原则、开闭原则、里氏替换原则、里氏替换原则、里氏替换原则
Java生成验证码
Java生成验证码,适用于jsp登录、注册等页面
MyBatis 3.2.3 中文开发手册
MyBatis帮助文档,中文版,适合新手