web-flash code generation plug-in released

web-flash is a Spring Boot + Vue.js back office system. Now released its generation based Intellij IDEA plug-in code!

You can then plug the warehouse idea search webflash-generator (currently in post audit plug-in, you may not search), or directly from the local installation plug: flash-generator / idea-plugin.jar can be.

Usage is as follows:

  • First, write the entity class, the entity class open, right click Generator (or Alt + Insert)

  • Select web-flash mvc, playing the build options check box

  • Click Generate to generate router in vue after completion / index.js add routes, and start api vue project, you can use the configuration menu and roles

Boy with entities, for example, will generate the following files execute code generation: code_add

After code generation, flash-vue-admin / src / router / index.js the flash-vue-admin routing configuration file, add the following:

      {
        path: 'boy',
        name: 'Boy',
        component:  () => import('@/views/test/boy/index'),
        meta: {
          title: '男孩管理'
        }
      }

As shown below run router

Start flash-api and flash-vue-admin, and menu configuration and role permission after the access code can function just generated a run code_result

Guess you like

Origin www.oschina.net/news/107912/web-flash-code-plugin-released