简体   繁体   English

春季启动:web-app + webservice

[英]Spring Boot: web-app + webservice

Need to create a webapp in java using spring boot which has UI and also it functions as a webservice. 需要使用Spring Boot在Java中使用web UI创建一个webapp,它具有UI,并且还可以用作webservice。 (web-app + webservice using spring boot). (使用春季启动的web-app + webservice)。 How to do the configurations ? 如何进行配置?

I think that this question is a bit wide. 我认为这个问题有点广泛。 You should start by reading some tutorial like : 您应该先阅读一些教程,例如:

http://projects.spring.io/spring-boot/ http://projects.spring.io/spring-boot/

I don't really know a good option to do UI with spring boot, but maybe look at : 我真的不知道用Spring Boot做UI的好选择,但也许看看:

https://spring.io/guides/gs/crud-with-vaadin/ https://spring.io/guides/gs/crud-with-vaadin/

You will need to learn and read a bit but I hope it helped you :) 您将需要学习和阅读一些内容,但希望对您有所帮助:)

EmCode EmCode

Select the SpringBoot example that is most close to your problem space and extend. 选择最接近问题空间并扩展的SpringBoot示例。 You can find the samples Here . 您可以在此处找到样本。

Alternatively you can use the Spring Initializr 另外,您可以使用Spring Initializr

This is an example of Web app from the original spring page: 这是原始春季页面中的Web应用程序示例:

https://spring.io/guides/gs/spring-boot/ https://spring.io/guides/gs/spring-boot/

And this for webservices 而这对于网络服务

https://spring.io/guides/gs/actuator-service/ https://spring.io/guides/gs/actuator-service/

You only need to start from the first example and add configuration in the 2nd 您只需要从第一个示例开始,并在第二个示例中添加配置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM