버전정보

  • spring dependency-management: 1.1.4
    • spring-boot-starter-security: 3.2.1
      • spring-security: 6.2.1

 

아래처럼 HttpSecurity 설정시 kotlin dsl 인식이 안된다.

 

아래는 관련 이슈.

 

Clarify that Kotlin DSL needs an import · Issue #13092 · spring-projects/spring-security

The Kotlin DSL to configure HTTP security doesn't work as shown in the documentation. The following example doesn't compile: package com.example.demo import org.springframework.context.annotation.B...

github.com

 

import org.springframework.security.config.annotation.web.invoke

위 import를 추가하면 IDE에서 DSL을 잘 인식한다

 

반응형