简体   繁体   English

Spring Roo仅用于制作网站的骨架吗?

[英]Is Spring Roo only for making the skeleton of a site?

After many problems, I have finally set up Roo with a simple example. 经过很多问题,我终于用一个简单的例子设置了Roo。

Now I just want to know how far should one go with Roo. 现在我只想知道Roo应该走多远。

I mean likes fields, classes, everything can be done through the Roo shell. 我的意思是喜欢字段,类,一切都可以通过Roo shell完成。

Now, for example, I have 15 classes in my project. 现在,例如,我的项目中有15个类。 I'm confused - to what point should I make classes with the Roo shell and when should I leave Roo and start working like normal? 我很困惑 - 我应该在什么时候使用Roo shell进行课程,何时应该离开Roo并开始正常工作?

Also, Roo has its own GUI and layout design. 此外,Roo拥有自己的GUI和布局设计。 Can we change that also? 我们也能改变吗?

You can also try Telosys Tools, it has been design to generate a full web application from an existing database. 您也可以尝试使用Telosys Tools,它可以从现有数据库生成完整的Web应用程序。

It's more flexible than Spring Roo, you can customize the model and the generator templates 它比Spring Roo更灵活,您可以自定义模型和生成器模板

The tutorial for code generation with Spring MVC and Spring Data is here : https://sites.google.com/site/telosystutorial/ 使用Spring MVC和Spring Data生成代码的教程如下: https//sites.google.com/site/telosystutorial/

I personally use ROO to generate the models, controllers and the scaffold, then I strip out a large chunk of the Scaffold so that I can put my own components in there and some of the controllers I still need to write by hand. 我个人使用ROO来生成模型,控制器和脚手架,然后我剥离了大量的Scaffold,这样我就可以将自己的组件放在那里,还有一些控制器我还需要手工编写。 When you reach the point where you have an interface generated by ROO, start hacking away and only use ROO to add new domain models. 当您到达ROO生成的界面时,开始黑客攻击并仅使用ROO添加新的域模型。

I agree with Jan. The Roo Scaffold application is just that: a structure that you can use to build your own application around, but that isn't something you'd like to expose as a client in its own right. 我同意Jan.Roo Scaffold应用程序只是:一个可以用来构建自己的应用程序的结构,但这不是你想要作为客户端自己公开的东西。 So far I have used Roo when creating or changing the data model, and have allowed it to manage and modify a lot of the code that is necessary for interacting with the data model. 到目前为止,我在创建或更改数据模型时使用了Roo,并允许它管理和修改与数据模型交互所需的大量代码。 But any work I'm doing outside of the model I do myself. 但是我在模型之外做的任何工作都是我自己做的。

My advice: use Roo where its strength is, and then do the rest by hand. 我的建议:在力量所在的地方使用Roo,然后手工完成剩下的工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM