Skip to content

Commit

Permalink
revert to hints on the caller site
Browse files Browse the repository at this point in the history
  • Loading branch information
alina-yur committed Sep 13, 2024
1 parent d8cbff0 commit ff4dfd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/example/demo/DemoApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ReflectiveScan;

@SpringBootApplication
@ReflectiveScan
public class DemoApplication {

public static void main(String[] args) {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/example/demo/ReflectionController.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.demo;

import org.springframework.aot.hint.annotation.RegisterReflectionForBinding;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Arrays;
Expand All @@ -13,6 +14,7 @@ public String message() {
return getMessage();
}

@RegisterReflectionForBinding(Message.class)
private String getMessage() {
try {
String className = Arrays.asList("com", "example", "demo", "Message").stream()
Expand Down

0 comments on commit ff4dfd5

Please sign in to comment.