Md5PasswordEncoder.java
需要引入
<dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> <version>4.1.1.RELEASE</version> </dependency>
用法举例:
@Test public void tt(){ Md5PasswordEncoder md5 = new Md5PasswordEncoder(); System.out.println(md5.encodePassword("123456", null)); }
时间: 2024-11-05 06:50:18