你能在Java EE Web应用程序中实现Vue.js吗? [英] Can you implement Vue.js in a Java EE web application?

查看:164
本文介绍了你能在Java EE Web应用程序中实现Vue.js吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和同学一起开发工具,我们想用Vue.js作为Web界面。

I just develop a tool with my classmates and we want to use Vue.js as Web interface.

描述我们编程的内容。我们在Eclipse中开发了一个Java EE Web应用程序。我们使用Tomcat 7作为Web服务器。我搜索了很长时间,但我一无所获。

For Description what we programmed. We developed a Java EE web application in Eclipse. We use Tomcat 7 as web server. I search a long time and i found nothing.

推荐答案

Vue.js是一个javascript前端框架。没有什么可以阻止您使用像Java EE这样的中间层/后端技术。
在HTML页面(或JSP)中,只包括文档中提到的Vue.js文件,以及作为vue.js前端应用程序一部分创建的其他.js文件。

Vue.js is a javascript front-end framework. There is nothing to stop you from using that with a middle-layer/back-end technology like Java EE. In your HTML pages(or JSP) just include the Vue.js file as mentioned in the documentation, and other .js files that you create as part of your vue.js frontend application.

然后,库可以与您公开的任何基于HTTP的后端方法(使用Servlet,控制器等)进行交互,具体取决于您的Java EE项目的结构以及它使用的框架。

The library can then interface with any HTTP-based backend methods that you expose (using Servlets, Controllers, etc.) depending on how your Java EE project is structured and what frameworks it uses.

这篇关于你能在Java EE Web应用程序中实现Vue.js吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆