与春/ Tomcat的/的IntelliJ实时变化的反馈可能吗? [英] Is real time change feedback with Spring/Tomcat/Intellij possible?

查看:153
本文介绍了与春/ Tomcat的/的IntelliJ实时变化的反馈可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的下一个项目&放前几周;我在找/想简化我们的开发过程中给予UX和放大器;开发者家伙最短的交货时间来改变验证(例如10秒一个Java变化/ 1秒UX / JS的变化)。

I have a few weeks before the next project & i'm looking/wanting to streamline our development process to give the UX & Devs guys the shortest lead time to change validation (e.g. 10 seconds for a Java change/1 second for UX/JS changes).

基本上,我想要的约翰·林德奎斯特显示在此影片(带webstorm&放RT反馈;对角待办事项列表示例3分钟),但我在Tomcat和放大器;春天。

Basically, I want what John Lindquist shows in this video (RT feedback with webstorm & the Angular todo list example in 3 minutes) but I with Tomcat & Spring.

我一直研究/我们的堆栈玩这个过去几天(Tomcat8,Intellij13,Spring4,角),我只是没有'得到它',所以觉得这是我在这方面知识的缺乏,我失去了一些东西(因此SO问题)。

Ive been researching/playing this for the last few days with our stack (Tomcat8,Intellij13, Spring4, Angular) and I am just not 'getting it' so think it is my lack of knowledge in this area and i'm missing something (hence the SO question).

我所迄今取得的UX家伙

咕噜(使用节点)担任了静态资源(JS / SCSS /模板)和livereload刷新铬 - 这是非常好,非常接近我想要的东西(RT留言反馈从SCSS / JS / HTML的变化),但最大的问题在于节点与跨源策略服务于静态资源,不TC如此(通过<一个解决href=\"http://stackoverflow.com/questions/21581258/grunt-connect-task-and-middleware-access-control-allow-origin\">this和) - 在重建的IntelliJ变得凌乱所涉及的呼噜声 - 看着SCSS用的文件观察家的,但它没有胶凝) - 总之我没有得到咕噜维修静态的放大器; TC的REST API协调工作。另一种选择是这家伙与繁重的更新TC资源时,该文件的变化,但只是不希望去那里。

Grunt (using node) to serve up the 'static resources'(JS/SCSS/Templates) and livereload to refresh chrome - this is very good and very close to what i want (RT feeback from SCSS/JS/HTML changes) but the big problem is that node is serving the static resources and not TC so with Cross Origin Policies (solved via this and this )- rebuilds in intellij become messy with grunt involved - looked at SCSS compiles with file watchers but it is not gelling) - in short i did not get grunt servicing static & TC the REST API working in harmony. Another option was this guy updates the TC resources with grunt when the file changes but just don't want to go there.

这使我回文件观察家,JetBrains的实时编辑(什么网站暴风影音节目)和IntelliJ又一次,我很接近,当谈到作为的IntelliJ可以在TC更新帧失活,但资源(静态内容和一个大BUT),这是不是实时的,当你改变资源结构,需要刷新但是我们是在一个的 SPA 这失去的刷新背景下减慢的家伙跌有回复序列要回的改变发生的地点,也是使用的IntelliJ时,他们不得不框取消激活来获得改变推到TC (它们在双屏所以标签关的IntelliJ是一样按下一个按钮来部署的变化)

This leads me back to file watchers, jetbrains live edit (what the web storm video shows) and intellij and again, i'm close when it comes to static content as intellij can update the resources on TC on frame deactivation but (and a big BUT) this is NOT real time and when you change resource structure, you need to refresh the page however we are working on a SPA which loses context on refresh which slows the guys down as have to reply sequences to get back to where the change happened and also when using intellij they have to 'frame de-activate' to get the changes pushed to TC (they are on dual monitors so to tab off intellij is the same as pushing a button to deploy the changes )

最好的日期是咕噜并接受发展相同的起源问题,但我失去的东西的家伙UX?

The best to date is grunt and accept the same origin issues for development but am I missing something for the UX guys?

我已经实现,以日期为开发家伙

在我们开始之前,买不起JRebel的,并没有得到弹簧加载,提供的IntelliJ和tomcat工作(然而)。

Before we start, can't afford jrebel and haven't got Spring Loaded working with intellij and tomcat (yet).

在这个阶段只要有TC通过用的IntelliJ改变类,并重新启动bean定义/法结构发生变化时刷新。糟糕了,我知道,但这是我们所使用,以

at this stage simply having TC refreshed by intellij with classes change and restart when bean definitions/method structure changes. Bad I know but 'it is what we are use to'

看着春季启动 - 看好但最好想不给配置的自由遥远,但它确实给我相信在服务器上实时更新。

Looking at spring boot - promising but ideally would like not to give the configuration freedom away but it does give live updates on the server I believe.

Grails是出去了所以不能受益那里。

Grails is out at the moment so can't benefit there.

我知道玩允许一些实时更新,但同样,在细节和从当前栈一个大的转变还没有看这个。

I know Play allows some real time updates but again, haven't looked at this in detail and a big shift from the current stack.

摘要

在开发方面将有可能坚守住编辑并接受刷新/停止的问题,所以我们不能'实现'什么约翰林德奎斯特表示Webstorm,即实时更新时使用Tomcat /的IntelliJ / Chrome时,资源的变化 - 或者至少是'我不知道'如何实现这一目标?

On the development side will likely stick to Live Edit and accept the refresh/deactivation issue so we can't 'achieve' what John Lindquist shows in Webstorm, i.e. real time updates when resources changes when using Tomcat/Intellij/Chrome - or at least 'I don't know' how to achieve this?

服务器端 - 我仍然在做这个,要继续看弹簧和IntelliJ整合再看看JRebel的,看看有没有,我们可以得到什么样的预算,但在此期间有任何的替代品,因为我见节点/红宝石/ Grails的家伙得到这一切,所以我相信这一定是我,我错过最佳的设置使用Tomcat和放大器时,从我们的code的变化获得超快速反馈;春天?

Server side - i'm still working on this, going to continue to look at spring loaded and intellij integration then look at jrebel and see what budget, if any, we can get but in the meantime is there any alternatives as I see the node/ruby/grails guys getting it all so i believe it must be me and i'm missing the best setup to get super fast feedback from our code changes when using Tomcat & Spring?

推荐答案

在短,是有可能与放;已经实现了我设定的目标 - 这是在Java EE平台(包括JS / SCSS变化和Spring / Java的变化)所有的发展变化,以实时发生(5/10秒服务器2秒UX)。我已经录了一点影片显示在行动这一切(请原谅缺乏戏剧的)..

In Short, yes it is possible & have achieved what I set out to achieve - that was all developmental changes in a Java EE platform (including JS/SCSS Changes and Spring/Java Changes) to happen in 'real time' (5/10 seconds server, 2 seconds ux). I have recorded a little video showing it all in action (please excuse the lack of dramatics)..

的Stack


  • AngularJS

  • AngularJS

咕噜-serving了一个 http代理以 /服务上下文调用。需要代理的2个原因 - 1是
绕过跨起源问题和放大器; 2 - 使实时静态
资源的变化(HTML / JS / SCSS)显示在浏览器 - 你不能做到这一点
Tomcat作为资源复制到Web的应用程序文件夹中的TC和
不是直接从源提供服务的(的IntelliJ可以重新部署在机架停用但是,这并不正常工作,它不允许即时的变化在Chrome中反映出来)的..

Grunt -serving up static pages with an http proxy to /service context calls. The proxy is needed for 2 reasons - 1 is to get around the Cross origin issues & 2 - so that real time static resources changes (HTML/JS/SCSS) are shown in Chrome - you can't do this with tomcat as the resources are copied to the web-app folder in TC and not being served directly from source (Intellij can redeploy on frame deactivation but that doesn't work well and it doesn't allow for instant changes to be reflected in Chrome)..

咕噜监控SCSS改变(我相信你可以使用文件观察家
虽然的IntelliJ但咕噜服务于静态内容)

Grunt monitors SCSS changes (I believe you could use file watchers in intellij though but have grunt serving the static content)

实时编辑动态更新的Chrome。

Live Edit updates Chrome on the fly.

JRebel的为需要春/服务器端更改到Tomcat(许可证
商业用途)

JRebel for Spring/Server side changes to Tomcat (licence required for commercial use)

在细微但重要的是什么咕噜正在做..

The subtle but important thing is what Grunt is doing..

这篇关于与春/ Tomcat的/的IntelliJ实时变化的反馈可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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