Home  >  Q&A  >  body text

java - 有没有一个工具 可以根据数据库生成一套通用的增删改查功能 包括前端页面。

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

PHP中文网PHP中文网2714 days ago360

reply all(5)I'll reply

  • 大家讲道理

    大家讲道理2017-04-18 09:29:04

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

    reply
    0
  • PHPz

    PHPz2017-04-18 09:29:04

    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.

    reply
    0
  • 黄舟

    黄舟2017-04-18 09:29:04

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

    Then go conquer the world, hahaha.

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 09:29:04

    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

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 09:29:04

    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.

    reply
    0
  • Cancelreply