java code generator, springboot code generator - increase the update, query functions (continually updated)

After a lapse of more than a week, finally taking the time to update the wave of the code generator, the company recently let me study rpa, badly battered, did not talk much, that is entered.

Before I have a friend to talk about the principles of the code generator, this blog will outline your position, careful to explain that later.

Double-click codeMan.exe, we all know, java exe program made a lot of trouble, where I is the use of plug-ins .net ikvm of the jar packets directly compiled into exe program, this interface will start to connect my server to check the version update, If an update will be in a remote server to download the latest configuration file to the local disk c codeManConfig folder, sdk folder is actually a stripped-down version of jdk, modelFiles freemarker template file is generated program code required to use, and before I was archive encryption is now no longer encrypted, if you want to format or style self-defined code page by modifying the template files in the folder can, of course, there is a logical variable names which can not be changed, otherwise generated when an error occurs, modify the page style is no problem, if you are familiar with freemarker grammar, so they can go to modify the template so that you can generate pages and code you want. coreCode folder is a jar file to run, and where the archive jar packets are encrypted, after all, there's information on a server, it is not convenient public.

After checking the update is completed, the main interface will pop up generator, and above all, the beginning of the configuration, this time I chose medicine database, two tables, medicinemsg and patient. The principle of this interface is not much to say, is the use of a swing java draw, then use a third-party plug-ins skin substance.

Then click on items to configure the configuration database of relevant information, here made a very substantial changes will first pop-up instructions to configure, mainly to let people know how to configure the fields of information, read and click OK.

First medicinemsg then configure the table below, where I put different types of businesses have chosen again, the generated code will be generated when different styles and sql, table patient just two field configuration.

然后关闭配置项界面回到主界面点击生成代码,然后就会根据模板动态生成相应的代码

把生成的项目导入eclipse,查看一下生成的sql,没有问题

访问localhost:8080/freeout/home

测试一下更新,把阿莫西林胶囊改成阿莫西林胶囊111,点击确认,更新成功!

测试一下查询功能

输入名称 阿莫西林 点击搜索 成功搜索出对应结果,没有问题

后续继续更新吧,也算是自己的一个sideProject,做好了的话用这东西来生成接的私活项目还是很有用的,你懂的,但如果是业务逻辑比较复杂的项目现在来看就是当个脚手架来使用。加油!

链接:https://pan.baidu.com/s/1L5gP5sH3LFKA8ZPurPmGhQ

提取码:wxpp

csdn下载链接https://download.csdn.net/download/m0_37719874/11249186

 

发布了26 篇原创文章 · 获赞 99 · 访问量 1万+

Guess you like

Origin blog.csdn.net/m0_37719874/article/details/95018815