This repository was archived by the owner on Aug 13, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-17
lines changed
src/main/java/com/younghun/hibusgo Expand file tree Collapse file tree 3 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 89
89
<artifactId >spring-boot-starter-aop</artifactId >
90
90
</dependency >
91
91
92
- <!-- 스프링시큐리티 web 라이브러리-->
92
+ <!-- 스프링시큐리티 crypto 라이브러리-->
93
93
<dependency >
94
94
<groupId >org.springframework.security</groupId >
95
- <artifactId >spring-security-web</artifactId >
96
- </dependency >
97
-
98
- <!-- 스프링시큐리티 core 라이브러리-->
99
- <dependency >
100
- <groupId >org.springframework.security</groupId >
101
- <artifactId >spring-security-core</artifactId >
102
- </dependency >
103
-
104
- <!-- 스프링시큐리티 config 라이브러리-->
105
- <dependency >
106
- <groupId >org.springframework.security</groupId >
107
- <artifactId >spring-security-config</artifactId >
95
+ <artifactId >spring-security-crypto</artifactId >
108
96
</dependency >
109
97
110
98
</dependencies >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public enum Status {
44
44
// 최종 수정일
45
45
private LocalDateTime updatedAt ;
46
46
47
- public void encodePassword ( PasswordEncoder passwordEncoder ) {
48
- this .password = passwordEncoder . encode ( this . password ) ;
47
+ public void setEncodePassword ( String encodePassword ) {
48
+ this .password = encodePassword ;
49
49
}
50
50
}
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ public Account findById(String id) {
24
24
}
25
25
26
26
public void addAccount (Account account ) {
27
- account .encodePassword (passwordEncoder );
27
+ String encodePassword = account .getPassword ();
28
+ account .setEncodePassword (encodePassword );
28
29
accountMapper .addAccount (account );
29
30
}
30
31
You can’t perform that action at this time.
0 commit comments