2020年9月16日

Java 8 新特性

摘要: @Override public List<String> getUserRoles(String username) { //找到以ROLE_开头的,并且映射为字符串数组 return userDetailsService.loadUserByUsername(username).getAutho 阅读全文

posted @ 2020-09-16 15:23 滚动的蛋 阅读(172) 评论(0) 推荐(0) 编辑

编码习惯--日志

摘要: 1、详细的日志打印可以帮助更好的排查问题 @ServiceActivator(inputChannel = "fileChannel") public void processFile(Message<File> message) throws IOException { securityUtil. 阅读全文

posted @ 2020-09-16 11:02 滚动的蛋 阅读(238) 评论(0) 推荐(0) 编辑

导航