Creating a library jar using Spring boot

前端 未结 3 1622
眼角桃花
眼角桃花 2021-02-06 12:27

I created a spring boot application having REST web services and jpa dependencies. The application runs on its own as a standalone application. I\'m trying to add UI layer usin

3条回答
  •  既然无缘
    2021-02-06 12:39

    If your intention was to let Vaadin call the REST API you've created from the browser (as is usually the case with client-side frameworks like AngularJS), then you're misunderstanding Vaadin. A Vaadin application runs server-side.

    So what you can do is run two servers, one running the Vaadin application and which calls the second one running your REST API. But if there's no need for this split, you can use the classes that form the REST API as a regular Java API called directly from the Vaadin application code.

提交回复
热议问题