ASP.NET=> Spring Web Flow:如何快速上手?
我是一名资深 Web 开发人员,过去 5 年一直专注于 ASP.NET/C#。对于我的最后一个软件工程硕士项目,我的团队正在与一家当地公司合作,使用 Spring Web Flow 为他们构建一个应用程序(因为这是他们当前的技术堆栈)。
我对用 Java 构建网站一无所知。事实上,我最后一次做 Java 开发是在 90 年代中期,当时我编写了一个计算器小程序(那时每个人都认为小程序将接管世界:-)。我知道有一些叫做 Servlet 和 servlet 容器的东西,但直到现在我还对它们一无所知。另一方面,我认为自己是一名 Web 应用程序专家(不仅来自 ASP.NET,还来自之前的经典 ASP 和 Perl),并且对 ASP.NET MVC 框架以及 Ruby on Rails 有一些经验,因此我希望看到与 MVC 实现有一些相似之处。但昨晚查看了无数的 xml 配置文件后,我不得不翻出我的旧婴儿毯并吮吸一下我的拇指。
那么,Java 大师们...您将如何让来自不同技术背景的有能力的开发人员加快 Java Web 开发世界的步伐?哪些网站有最好的教程?有哪些书籍可以提供帮助?请记住,在我们开始第一次代码冲刺之前我还有一个月的时间,但我应该有时间做一些好的深夜阅读。
I'm a long-time web developer who's been focusing on ASP.NET/C# for the past 5 years. For my final Masters in Software Engineering project, my team is working with a local company to build them an app using Spring Web Flow (as that's their current tech stack).
I don't know the first thing about building web sites with Java. In fact the last Java dev I did was in the mid-90's when I wrote a calculator applet (back when everyone thought applets would take over the world :-). I know there are things called Servlets, and servlet containers, but I've lived in blissful ignorance about them until now. On the other hand I consider myself a web application expert (not just from ASP.NET, but from classic ASP and Perl before that) and have some experience with the ASP.NET MVC framework as well as Ruby on Rails so I expect to see some similarities with the MVC implementation. But after looking at the myriad xml configuration files last night I had to dig up my old baby blankie and suck my thumb for a bit.
So, Java masters... how would you go about getting a competent developer from a different tech background up to speed on the world of Java web development? What sites have the best tutorials? What books can help? Keep in mind that I have one month before we start our first code sprint, but there should be time for me to do some good late night reading.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我同意上面的观点,首先是servlet/jsp的基础,其次是spring mvc。关于 Spring webflow 本身,您需要意识到这与大多数其他 mvc 类型框架有很大不同,并且我不知道 .net 世界中有类似的框架。它使某些事情变得非常非常容易,而另一些事情则非常尴尬。学习它的最佳方法是:
1)阅读参考文档
http://static.springsource .org/spring-webflow/docs/2.3.x/reference/htmlsingle/spring-webflow-reference.html
2)查看示例中的代码
https://fisheye.springsource.org/browse/spring-webflow/spring -webflow-samples
3) 乞求、借用或窃取(甚至购买)《Spring in Action》的副本并阅读其 webflow 章节。
4) 显然,阅读尝试过 swf 的人的博客并做自己的 hello-world 类型的项目来掌握它的窍门。
swf 的主要想法是考虑一个支持“向导”的框架,它可以指导您完成一个流程,这样它就更类似于 BPL,而不是 Web 框架。
I agree with the above that the fundamentals of servlets/jsp are first, followed by spring mvc. On the topic of Spring webflow itself, you need to realise that this is quite different from most other mvc-type frameworks, and I'm not aware of a similar one in the .net world. It makes some things really really easy, and other things really awkward. The best ways to learn it are:
1) read the reference documentation
http://static.springsource.org/spring-webflow/docs/2.3.x/reference/htmlsingle/spring-webflow-reference.html
2) look through the code in the samples
https://fisheye.springsource.org/browse/spring-webflow/spring-webflow-samples
3) beg, borrow or steal (or even buy) a copy of Spring in Action and read its webflow chapter.
4) Obviously, read blogs from people who tried out swf and do your own hello-world type projects to get the hang of it.
The main think with swf is to think of a framework that enables "wizards" which can guide you through a process, in that way it's more similar to a BPL than a web framework.
我建议 SpringMVC 逐步 作为一个教程。
或者,如果您更喜欢参考手册:
最后,当然:
I'd recommend SpringMVC step-by-step as a single tutorial.
Or if you prefer reference manuals:
Finally, of course: