-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update springboot templates to Spring Boot 3.0
- add needed buildEnv properties - add class to register runtime hints for MessageUtils.MessageStructureWithCaseInsensitiveHeaderKeys - update README files Signed-off-by: Thomas Risberg <trisberg@pivotal.io>
- Loading branch information
Showing
9 changed files
with
6,664 additions
and
6,823 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
templates/springboot/cloudevents/src/main/java/echo/SpringCloudEventsApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,26 @@ | ||
package echo; | ||
|
||
import org.springframework.aot.hint.MemberCategory; | ||
import org.springframework.aot.hint.RuntimeHints; | ||
import org.springframework.aot.hint.RuntimeHintsRegistrar; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.cloud.function.context.message.MessageUtils; | ||
import org.springframework.context.annotation.ImportRuntimeHints; | ||
|
||
@SpringBootApplication | ||
@ImportRuntimeHints(SpringCloudEventsApplication.MessageHeaderHints.class) | ||
public class SpringCloudEventsApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(SpringCloudEventsApplication.class, args); | ||
} | ||
|
||
static class MessageHeaderHints implements RuntimeHintsRegistrar { | ||
@Override | ||
public void registerHints(RuntimeHints hints, ClassLoader classLoader) { | ||
hints.reflection().registerType(MessageUtils.MessageStructureWithCaseInsensitiveHeaderKeys.class, | ||
MemberCategory.INVOKE_PUBLIC_METHODS); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.