- 博客(8)
- 收藏
- 关注
原创 如何比较两个json字符串是否相等
1、引入相关依赖<dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.6.2</version></dependency>2、比较两个顺序...
2019-04-24 09:47:50 8567
转载 Spring Security权限认证规则(五)
Spring Security权限认证规则1、当服务器启动时,Spring Security会根据配置将所有的URL和其对应的权限加载到Spring Security中。@Servicepublic class MyInvocationSecurityMetadataSourceService implements FilterInvocationSecurityMetadataSource...
2019-04-20 16:58:56 1417
转载 APP端接入支付宝支付接口
支付宝支付常量配置 AlipayConfigpublic class AlipayConfig { // 商户appid public static final String APPID = ""; // app端支付宝支付异步通知结果;服务器异步通知页面路径 需http://或者https://格式的完整路径,不能加?id=123这类自定义参数,必须外网可以正常访问 public st...
2019-04-19 17:05:46 5871 1
原创 springMVC返回给前端的json串中存在{“$ref“:“$.data[1].children[0].meta“}}
例子meta: {$ref: "$.data[1].children[0].meta"}解决办法使用fastjson的JSONObject.toJSONString(meta, SerializerFeature.DisableCircularReferenceDetect);Map<String, Object> map = new HashMap<>();M...
2019-04-18 13:32:43 3578 1
原创 springboot+springsecurity静态资源访问配置(四)
访问静态资源错误信息解决方法:配置文件WebMvcConfig 处理静态资源访问package com.jayden.config;import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.EnableWebM...
2019-04-11 16:34:17 9599 1
转载 springboot+springsecurity基于用户表-角色表-权限表的权限控制(三)
用户实体类参考:springboot+springsecurity基于角色的权限验证(二)配置类@Configuration@EnableWebSecurity@EnableGlobalMethodSecurity(prePostEnabled =true) // 启用授权注解public class SecurityConfiguration extends WebSecurityC...
2019-04-09 16:34:41 10783 3
原创 springboot+springsecurity基于角色的权限验证(二)
采用springboot+springsecurity用户实体类public class T_user implements UserDetails { private String username; private String password; // ... 省略get,set 方法 @Override public String toString() { ...
2019-04-08 18:14:52 3053 2
原创 Spring Security总结之如何让认证失败消息自定义在前端页面显示(一)
采用springboot+thymeleaf前端登录页面代码<form action="/doLogin" method="post"> 用户名:<input type="text" name="username" id="username"/><br/> 密码:<input type="password" name="password" id="...
2019-04-06 19:43:36 9351 3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人