-
@SpringBootApplication 자바[Java] -> 코틀린[Kotlin]으로 변경프로젝트/자프링 -> 코프링 마이그레이션 2022. 12. 6. 00:01
기존 Java의 @SpringBootApplication
@SpringBootApplication public class AnthillApplication { public static void main(String[] args) { SpringApplication.run(AnthillApplication.class, args); } }
Kotlin의 @SpringBootApplication
@SpringBootApplication class AnthillApplication fun main(args: Array<String>) { SpringApplication.run(AnthillApplication::class.java, *args) }
https://www.baeldung.com/kotlin/spring-boot-kotlin
'프로젝트 > 자프링 -> 코프링 마이그레이션' 카테고리의 다른 글
Kotlin DSL Gradle 멀티 모듈 적용 (0) 2022.12.27 build.gradle to build.gradle.kts (Groovy를 Kotlin으로 마이그레이션) (0) 2022.12.11 [kotlin][Mockito][Junit5] any() must not be null 에러 해결 (0) 2022.12.05 Kotlin 각종 어노테이션 사용법(@Index, @Embeddable, @Size) (0) 2022.12.01 Kotlin과 Lombok 컴파일 에러 해결 (0) 2022.11.30