| | |
| | | |
| | | @Override |
| | | public R addUserSite(List<TUserSite> userSite) { |
| | | return R.fail("添加用户站点失败:" + throwable.getMessage()); |
| | | throw new RuntimeException("添加用户站点失败:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R delUserSite(Long userId) { |
| | | return R.fail("删除用户站点失败:" + throwable.getMessage()); |
| | | throw new RuntimeException("删除用户站点失败:" + throwable.getMessage()); |
| | | } |
| | | }; |
| | | } |
| | |
| | | BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(); |
| | | return passwordEncoder.matches(rawPassword, encodedPassword); |
| | | } |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(); |
| | | String encode = passwordEncoder.encode("49a15811ea47e8e9c6d8f3ef4d7bbc54"); |
| | | System.err.println(encode); |
| | | } |
| | | } |