Spring MVC - 项目结构 - 最佳实践 [英] Spring MVC - Project structure - best practices

查看:57
本文介绍了Spring MVC - 项目结构 - 最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最好的方法是什么?

1- 创建多个项目:

2- 创建单个项目:

推荐答案

我建议你看看 Spring 的 Project Sagan.这是他们当前网站 (http://spring.io) 的源代码.虽然他们使用了多模块方法,但并没有像您建议的那样划分.他们实际上只是提取了一些客户端工作,并将其余部分保存在一个模块中.

I'd suggest you take a look at Spring's Project Sagan. It's the source code for their current website (http://spring.io). While they used a multi-module approach, it wasn't divided as you are suggesting. They really just pulled out some client work and kept the rest in a single module.

这个网站是由 Spring 团队编写的,他们将使用自己的工具,并作为参考应用程序发布,以回答这样的问题.我鼓励你看看这里:https://github.com/spring-io/sagan.

This site was written by the Spring team the way they would use their own tools and released as a reference application to answer questions just like this. I encourage you to take a look here: https://github.com/spring-io/sagan.

这篇关于Spring MVC - 项目结构 - 最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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