Leon
Leon
E.g:  methods and params thank!
This is the project I pulled down. How to package Jar and run it externally using java -jar, I use Maven to package and keep reporting errors
### 问题描述 我在springboot项目中,想通过fastjson2序列化redis的ValueSerializer和HashValueSerializer以下为序列化和反序列化代码  我序列化到redis的时候是正常的, 使用JSON.toJSONBytes(T) 值如下 {"attributes":{"java.security.Principal":{"authenticated":true,"authorities":[{"authority":"ROLE_admin"},{"authority":"ROLE_user"}],"details":{"remoteAddress":"127.0.0.1","sessionId":"A945B195F014D0BA4C8F0FA42D228153"},"name":"leon","principal":{"accountNonExpired":true,"accountNonLocked":true,"attributes":{},"authorities":[{"authority":"ROLE_admin"},{"authority":"ROLE_user"}],"credentialsNonExpired":true,"email":"[email protected]","enabled":true,"name":"leon","nickname":"leon","phone":"18137772224","userId":1,"username":"leon"}},"org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest":{"additionalParameters":{},"attributes":{},"authorizationRequestUri":"http://127.0.0.1:9000/whale/oauth2/authorize?response_type=code&client_id=web&scope=all&redirect_uri=https://www.baidu.com","authorizationUri":"http://127.0.0.1:9000/whale/oauth2/authorize","clientId":"web","grantType":{"value":"authorization_code"},"redirectUri":"https://www.baidu.com","responseType":{"value":"code"},"scopes":["all"]},"state":"-q2sa200GhpO36UKcZ4BXgx9gxAqudwKg4i4tTYjMLo="},"authorizationGrantType":{"value":"authorization_code"},"id":"10ce34de-b5e3-4e2c-a3ab-73fa0a7bb46d","principalName":"leon","registeredClientId":"web"} 但是我当反序列化的时候就会提示不可以转换 异常信息 java.lang.ClassCastException: com.alibaba.fastjson2.JSONObject cannot be cast to org.springframework.security.oauth2.server.authorization.OAuth2Authorization 目标转换的类  ### 环境信息 以下是我的坐标版本 com.alibaba.fastjson2 fastjson2 2.0.11
## 版本号 v1.12.0 ## 什么问题 权限问题:添加项目成员为访客,登录以后可以修改接口? ## 如何复现此问题 1.docker部署 2.注册账号 3.管理员分配为访客 4.进入系统页 5.点开接口 可以修改接口内容 ## 什么浏览器 edge ## 什么系统(Linux, Windows, macOS) 部署:linux 访问:win
按照文档打包后,在linux系统执行startup.sh启动jar包,发现所有接口返回都会增加一个多余的json,如下图! 本地包是没有问题 