Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit a26dae2

Browse files
sdeleuzejoemoore
authored andcommitted
<reflection-hint> Add reflection hints
1 parent 51d538f commit a26dae2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/example/cashcard/CashCardApplication.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
import org.springframework.aot.hint.RuntimeHints;
44
import org.springframework.aot.hint.RuntimeHintsRegistrar;
5+
import org.springframework.aot.hint.annotation.RegisterReflectionForBinding;
56
import org.springframework.boot.SpringApplication;
67
import org.springframework.boot.autoconfigure.SpringBootApplication;
78
import org.springframework.context.annotation.ImportRuntimeHints;
89

910
@SpringBootApplication
1011
@ImportRuntimeHints(CashCardApplication.Hints.class)
12+
@RegisterReflectionForBinding({ CashCardDto.class, UserDto.class })
1113
public class CashCardApplication {
1214

1315
public static void main(String[] args) {

0 commit comments

Comments
 (0)