10 2021 档案

摘要:Spring Security中提供的用户对象定义接口UserDetails /** * 提供核心用户信息。 * 出于安全目的,Spring Security 不直接使用实现。 它们只是存储用户信息,然后将这些信息封装到Authentication对象中。 这允许将非安全相关的用户信息(例如电子邮件 阅读全文
posted @ 2021-10-19 21:04 xl4ng 阅读(107) 评论(0) 推荐(0) 编辑
摘要:import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.f 阅读全文
posted @ 2021-10-08 15:55 xl4ng 阅读(172) 评论(0) 推荐(0) 编辑
摘要:import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Test; import java.text 阅读全文
posted @ 2021-10-08 15:54 xl4ng 阅读(242) 评论(0) 推荐(0) 编辑
摘要:import com.fasterxml.jackson.core.JsonEncoding; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonGenerator; import 阅读全文
posted @ 2021-10-08 15:51 xl4ng 阅读(756) 评论(0) 推荐(0) 编辑
摘要:import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.Objec 阅读全文
posted @ 2021-10-08 15:50 xl4ng 阅读(1005) 评论(0) 推荐(0) 编辑
摘要:import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; 阅读全文
posted @ 2021-10-08 15:47 xl4ng 阅读(1290) 评论(0) 推荐(0) 编辑
摘要:import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.Version; 阅读全文
posted @ 2021-10-08 15:45 xl4ng 阅读(607) 评论(0) 推荐(0) 编辑
摘要:@GetMapping("/car/{id}/owner/{username}") public Map<String, Object> getCar( //路径变量 @PathVariable("id") Integer id, @PathVariable("username") String u 阅读全文
posted @ 2021-10-07 17:42 xl4ng 阅读(426) 评论(0) 推荐(0) 编辑
摘要:1、新建类 @Data @Component @ConfigurationProperties(prefix = "person") public class Person { private String userName; private Boolean boss; private Date b 阅读全文
posted @ 2021-10-07 11:22 xl4ng 阅读(106) 评论(0) 推荐(0) 编辑