Skip to content

Unused bean object #33

@LeagueLugas

Description

@LeagueLugas

개요

심심해서 코드좀 보다가 발견했는데, FilterConfig클래스에 @Component를 붙이고 SecurityConfig클래스에서 apply할때는 클래스를 생성자를 통해 생성하여 등록 하더라구요.
이러면 빈에 등록되는 의미가 있을까요?

@Component
class FilterConfig(
private val objectMapper: ObjectMapper
) : SecurityConfigurerAdapter<DefaultSecurityFilterChain, HttpSecurity>() {

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions