Package com.google.genkit.plugins.spring
Class GenkitSpringApplication
java.lang.Object
com.google.genkit.plugins.spring.GenkitSpringApplication
Spring Boot application class for Genkit.
This class is the entry point for Spring Boot auto-configuration and component scanning for the Genkit Spring plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenkitFlowController(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates the Genkit flow controller bean.com.fasterxml.jackson.databind.ObjectMapperCreates an ObjectMapper bean for JSON serialization.
-
Constructor Details
-
GenkitSpringApplication
public GenkitSpringApplication()
-
-
Method Details
-
objectMapper
@Bean public com.fasterxml.jackson.databind.ObjectMapper objectMapper()Creates an ObjectMapper bean for JSON serialization.- Returns:
- the ObjectMapper
-
genkitFlowController
@Bean public GenkitFlowController genkitFlowController(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates the Genkit flow controller bean.- Parameters:
objectMapper- the ObjectMapper for JSON serialization- Returns:
- the flow controller
-