You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now start app inside micronautspring by java -jar target/default-0.1.jar
Invoke APIs
5. Invoke api directly defined in micronautspring app itelf. curl -v -X 'GET' 'http://localhost:8080/greeting' and gives 200OK.
6. Invoke api defined in 3rd party jar springboot. curl -v -X 'GET' 'http://localhost:8080/hello' and gives 404.
Reference code. Refer zip file for complete examples.
Controller defined in Micronaut spring app and doing an @import as follows.
@SpringBootApplication // <1>
@Import(org.myapp.XGreetingController.class)
public class Application {
public static void main(String... args) {
Micronaut.run(Application.class);
}
}
Question is how to get micronautspring app to pickup/find the controller defined in the springboot app jar ?
Environment Information
JDK 21
Example Application
No response
Version
4.4.3
The text was updated successfully, but these errors were encountered:
Expected Behavior
I use @import(org.myapp.class) in my Micronaut-spring app class. And expect it to pickup the XGreetingController defined in the 3rd party jar.
Actual Behaviour
Expect the api defined in 3rd party jar to be picked up and api should return 200ok response.
Steps To Reproduce
Two Projects springboot and micronautspring Zip
springtomicronaut.zip
Invoke APIs
5. Invoke api directly defined in micronautspring app itelf. curl -v -X 'GET' 'http://localhost:8080/greeting' and gives 200OK.
6. Invoke api defined in 3rd party jar springboot. curl -v -X 'GET' 'http://localhost:8080/hello' and gives 404.
Reference code. Refer zip file for complete examples.
Controller defined in Micronaut spring app and doing an @import as follows.
Question is how to get micronautspring app to pickup/find the controller defined in the springboot app jar ?
Environment Information
JDK 21
Example Application
No response
Version
4.4.3
The text was updated successfully, but these errors were encountered: