是否可以采用 IntelliJ IDEA Community Edition 进行 Web 开发?
目前我正在将 IntelliJ IDEA 用于非 Web 项目,但我很想将其用于 Web 开发。不幸的是,IntelliJ IDEA Ultimate Edition 的价格(220 欧元)目前对我来说太高了,这就是为什么我被迫使用 STS(Springsource Tool suite)。
我想知道有没有办法采用IntelliJ IDEA CE版本进行Web开发?当然,我可以直接使用破解或编写一个,但这不是我的风格。
Currently I'm using IntelliJ IDEA for non-web projects, but I'd love to use it for web development. Unfortunately IntelliJ IDEA Ultimate Edition's price (220 Euro) is to high for me currently and that's why I'm forced to use STS(Springsource Tool suite).
And I'm wondering is there a way to adopt IntelliJ IDEA CE version for web-development? Of course I could just use crack or write one but it's not my style.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当然有可能。我的意思是,可以在文本编辑器中进行 Web 开发。真正的问题是你失去了什么/失去了多少痛苦。您需要设置一些内容:
即使有了这些设置,您仍然会缺少任何特定于 Web 开发的便利功能(bean 不会自动显示相关 xml 配置的链接,用于依赖注入的 getter/setter 可能会显示未使用的方法警告等。 )
我想说 IntelliJ CE 是否是 Web 开发的合理选择取决于您对 IntelliJ 的偏好程度高于其他编辑器,以及您对 Web 开发的总体适应程度(因为您不会收到任何编辑器建议或警告) ,以及您的项目的 Web 组件的复杂程度。
Sure it's possible. I mean, it's possible to do web development in a text editor. The real question is what do you lose/how much of a pain it is. Some things that you will need to set up:
Even with that stuff set-up, you'll still be missing any convenience features specific to web development(beans won't automatically show links to relevant xml configurations, getters/setters used for dependency injection will probably show unused method warnings, etc.)
I'd say whether IntelliJ CE is a reasonable choice for web-development depends on how strongly you prefer IntelliJ to other editors, how comfortable you are with web-development in general(since you won't get any editor suggestions or warnings), and how complex the web components of your project are.
编辑:这个答案现在已经过时了。 gradle中有gradle中有一个war插件可以直接被IntelliJ使用。以下为原创内容,但请不要再这样做了。
我们使用的是这个 gradle 文件:
然后执行 gradle idea 或 gradle eclipse 生成一个可以部署在 IntelliJ Community Edition 中的项目。
详细说明可在此处获取,源代码可作为< a href="https://github.com/extrema/jetty-embedded" rel="nofollow noreferrer">Github 项目。
EDIT: This answer is now outdated. There is a war plugin in gradle that can be used directly by IntelliJ. Original contents follow, but please don't do this anymore.
We were using this gradle file:
Then execute
gradle idea
orgradle eclipse
to generate a project that can be deployed in IntelliJ Community Edition.The long explanation is available here and the source code is available as a Github project.