๐น ์๋ฌ
- ์ธํ๋ฆฌํฐ ์ ์ฉ ํ
user/join
ํ๋ฉด ์์ด๋ฆผ
๐น ์๋ฌ๋ฉ์์ง
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'userController':
Unsatisfied dependency expressed through field 'service';
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'userService':
Unsatisfied dependency expressed through field 'passwordEncoder';
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'securityConfig':
Unsatisfied dependency expressed through field 'userDetailsService';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'inMemoryUserDetailsManager' defined
in class path resource [org/springframework/boot/autoconfigure/security/servlet/UserDetailsServiceAutoConfiguration.class]:
Bean instantiation via factory method failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.springframework.security.provisioning.InMemoryUserDetailsManager]:
Factory method 'inMemoryUserDetailsManager' threw exception;
nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException:
Error creating bean with name 'passwordEncoder':
Requested bean is currently in creation:
Is there an unresolvable circular reference?
- ๊ทธ๋ฅ ํฐ์บฃ ์คํ๋ง ํด๋ ์๋ฌ๊ฐ ๋ฌ๋ค
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'springSecurityFilterChain' defined
in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]:
Bean instantiation via factory method failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [javax.servlet.Filter]:
Factory method 'springSecurityFilterChain' threw exception;
nested exception is java.lang.IllegalArgumentException:
defaultTarget must start with '/' or with 'http(s)'
๐น ํด๊ฒฐ
SecurityConfig
์ 42
๋ฒ ๋ผ์ธ์
1. feed/home
๊ฒฝ๋ก๊ฐ ์์๋ค
2. /
feed/home
์ด๋ผ๊ณ ์ ์ด์ผ ํ๋๋ฐ feed/home
์ด๋ผ๊ณ ์ ์ด์, ์ฆ /
๋ฅผ ๋นผ๋จน์๋ค
3. ๊ฒฝ๋ก(์ปจํธ๋กค๋ฌ)์ html
์ ๋ง๋ค๊ณ /feed/home
์ด๋ผ๊ณ ์ ์ด์ฃผ๋ ํด๊ฒฐ๋์๋ค