Giter VIP home page Giter VIP logo

code-maker's Introduction

中文   |   English

code-maker

Description

Generate code for a Spring Boot project.

(This is a project based on mybatis-plus generator.)

Dependencies

  • Gradle

    1. Add repository

      maven { url "https://killerjmc.github.io/code-maker/repo" }
      maven { url "https://killerjmc.github.io/jmc-utils/repo" }
    2. Add dependency

      implementation "com.jmc:code-maker:latestVersion"
  • Maven

    1. Add repository

      <repository>
          <id>jmc-code-maker-repo</id>
          <url>https://killerjmc.github.io/code-maker/repo</url>
      </repository>
    2. Add dependency

      <dependency>
          <groupId>com.jmc</groupId>
          <artifactId>code-maker</artifactId>
          <version>latest-version</version>
      </dependency>

Usage

  1. Create a new Spring Boot project.
  2. Add dependency for this module.
  3. Add spring.datasource config into application.properties or application.yml
  4. Write @CodeMaker on the application class.
  5. Launch the application.

Function

  • Generate multi-layered architecture (pojo, dao, service, controller).
  • Clean the useless files of the project.
  • Inject a yml template for the project.
  • Inject dependencies for the project.
  • Delete itself silently after above operations.

Feature

You can specify following properties in @CodeMaker

  • Add persistenceFramework arg to specify persistence framwork (JPA or MyBatis Plus).

  • Add include arg to include tables.

  • Add include arg to exclude tables.

  • Add tablePrefix arg to specify the table prefixes, these prefixes will not join the class name of Java Bean corresponding to them.

  • Add autowired arg to specify whether to add the dependencies between components and their parents.

  • Add injectYml arg to inject application.yml template.

code-maker's People

Contributors

killerjmc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.