Easter79 Easter79
3年前
springmvc +hibernate+ spring+ maven框架搭建
一、web.xml<?xmlversion"1.0"encoding"UTF8"?<webappxmlns:xsi"http://www.w3.org/2001/XMLSchemainstance"xmlns"http://java.sun.com/xml/ns/javaee
Stella981 Stella981
3年前
Spring Cloud是什么,和Dubbo对比呢?
!(https://oscimg.oschina.net/oscnet/60bfa15a57b0482680adee18a9f8e1ec.png)简介SpringCloud是一系列框架的有序集合。它利用SpringBoot的开发便利性巧妙地简化了分布式系统基础设施的开发,如服务发现注册、配置中心、消息总线、负载均衡、断路
Stella981 Stella981
3年前
Spring Cloud Eureka 自我保护机制实战分析
前些天栈长在Java技术栈微信公众号分享过SpringCloudEureka的系列文章:SpringCloudEureka自我保护机制(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fmp.weixin.qq.com%2Fs%2FvwPstQ0R0s_PsEhZ
Stella981 Stella981
3年前
Spring singleton bean 与 prototype bean 的依赖
本文同步至:http://www.waylau.com/springsingletonbeanswithprototypebeandependencies/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.waylau.com%2Fspringsingletonbe
Stella981 Stella981
3年前
Spring Shiro 使用默认的Session会话管理
项目中用到了shirosession会话管理机制,今天来总结一下,以下都是在springboot框架实现。shiro的session管理机制很完善,也是独立于j2ee容器且不依赖的,所以我们完全可以使用shiro提供给我们的session会话管理来实现我们的业务逻辑,默认提供的sessionDAO是memorySessionDAO,这里也主要讲它的配
Stella981 Stella981
3年前
Spring Boot 与 Kotlin 验证web表单信息
在做web开发的时候,我们需要验证表单,确认用户提交的信息是安全的,比如用户名不能超过多少位,密码不能少于多少位等等。那么如何在SpringBoot与Kotlin中验证表单信息?在springmvc工程中,需要检查表单信息,表单信息验证主要通过注解的形式。表单验证下面我们在之前《SpringBoot与kotlin使用
Stella981 Stella981
3年前
Spring MVC 关于controller的字符编码问题
<divid"cnblogs\_post\_body"class"blogpostbodycnblogsmarkdown"<divid"content"<p在使用springMVC框架构建web应用,客户端常会请求字符串、整型、json等格式的数据,通常使用@ResponseBody注解使controller回应相应的数据而不是去
Stella981 Stella981
3年前
Spring Security OAuth2源码分析(一)
本文开始从源码的层面,讲解一些SpringSecurityOauth2的认证流程。由于文章涉及了比较多的源码且较长,适合在空余时间段观看,非关键性代码以...代替。准备工作首先开启debug信息:1.logging:
Stella981 Stella981
3年前
Spring Boot让jar可以直接运行
<plugin<groupIdorg.springframework.boot</groupId<artifactIdspringbootmavenplugin</artifactId<configuration<executabletrue</exe
Stella981 Stella981
3年前
CompletableFuture与Spring的Sleuth结合工具类
系列目录:1.SpringWebFlux运用中的思考与对比(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fzhxdick%2Farticle%2Fdetails%2F103035149)2.CompletableFuture与Sprin