Repository navigation
Running a spring-web backend along with embabel Spring Shell? #1036
Unanswered
dvag-joerg-winter
asked this question in
Q&A
Replies: 2 comments
|
... after posting this, I just managed to do this. The weird thing is, that my backend (regular spring-webmvc server) needs one more Bean, which is not necessary in the application, when run in the usual way without embabel's Spring Shell @Bean
fun corsConfigurationSource(): CorsConfigurationSource {
val configuration = CorsConfiguration()
configuration.allowedOrigins = listOf("*")
configuration.allowedMethods = listOf("*")
configuration.allowedHeaders = listOf("*")
val source = UrlBasedCorsConfigurationSource()
source.registerCorsConfiguration("/**", configuration)
return source
}
Any ideas why that Bean is need for the shell? |
0 replies
@dvag-joerg-winter - could you please elaborate on this inquiry?thank you |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
it would be fantastic, if embabel's interactive shell-mode is available along with the running (web)server.
I managed to disable logging in the backend (so that the terminal interaction won't get disturbed by logging), but although I included
embabels shell starter:
com.embabel.agent
embabel-agent-starter-shell
0.2.0.1-SNAPSHOT
it will not come up as it does in the apps from embabel-agent-examples repo.
I think this issue is actually independent of embabel, but still: agent development in an existing backend and testing the agents interactively would be very nice indeed.
Is spring-shell not able to run together with a server? Or is it a terminal-related issue?
All reactions