java - 有没有一个工具 可以根据数据库生成一套通用的增删改查功能 包括前端页面。
PHP中文网
PHP中文网 2017-04-18 09:27:04
0
5
429

如题,类似工具,我只用过myeclipse里的代码生成工具,但是最多也只能生成到service+dao+entity代码,而controller以及前端html/jsp页面没有生成,有没有一个生成整套代码的,用户只需在数据库中加个表,就可以在浏览器中使用这个表的增删改查功能。

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(5)
大家讲道理

You can learn about JBoss Seam, you can go directly from the database to the page

PHPzhong

It’s hard to have a simple answer. However, frameworks such as Ruby On Rails can quickly and concisely combine data models, presentations, and behaviors. Essentially, it is all about rapid development, and automatic code generation is because the code is large and complicated. And Ruby On Rails lets you write very little code. If you intend to spend 2 days studying carefully, you will definitely gain something.

黄舟

Install Visual Studio and create a new ASP.NET MVC project

Then go conquer the world, hahaha.

小葫芦

Our company has implemented it, but it is only suitable for our company’s products. JSP is diverse and cannot be used as a standard output. You can write it yourself and use a template to automatically generate it

刘奇

Hello, your idea is right, many companies have such tools. However, since each company's situation is different, it is impossible to apply the tools of company A to company B, so such universal tools cannot be made. I have an implementation idea here:
The code of the general template, whether it is JSP, is essentially a text file;
Then, the text file is generated by a characteristic model generated by a certain rule (but the table is different or the model is different) The results are different but follow a certain rule;
This can obviously be done using code plus a template generation tool such as freemarker.
Of course, after all, it is not a real project, it is just a development tool used within the company, so it can also be implemented in other languages.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template