Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just ru…
什么是WebSocket WebSocket为浏览器和服务器之间提供了双工异步通信功能,也就是说我们可以利用浏览器给服务器发送消息,服务器也可以给浏览器发送消息,目前主流浏览器的主流版本对WebSocket的支持都算是比较好的,但是在实际开…
常用用于实现拦截的有:Filter、HandlerInterceptor、MethodInterceptor 第一种Filter属于Servlet提供的,后两者是Spring提供的,HandlerInterceptor属于Sp…
Redis的集成配置在集成shiro的时候一并集成了。 参考一下我的这篇博文【Spring Boot 十二】 Shiro 权限管理 没有哪种教育能及得上逆境
使用SpringBoot进行文件上传的方法和SpringMVC差不多。 话不多说,直接上代码 FileUploadController.java [crayon-6072f5ab89a68369985466/] …
接着上一篇【spring boot 十五】事务的使用 本文介绍在 Spring Boot 中如何使用定时任务,使用非常简单,就不做过多说明了。 [crayon-6072f5ab89e74824471283/] &…
Spring Boot 使用事务非常简单,首先使用注解 @EnableTransactionManagement 开启事务支持后,然后在访问数据库的Service方法上添加注解 @Transactional 便可。 没错,就是…
接着上一篇文章【Spring Boot 十三】 动态数据源(多数据源自动切换)继续聊 Spring Boot 其默认是集成web容器的,启动方式由像普通Java程序一样,main函数入口启动。其内置Tomcat容器或Jetty…
更多...
加载中...