# fluent_mybatis **Repository Path**: joslyn/fluent_mybatis ## Basic Information - **Project Name**: fluent_mybatis - **Description**: --学习Fluent-Mybatis框架-- - **Primary Language**: Java - **License**: BSD-3-Clause - **Default Branch**: 20210806FM1.0.0Preset - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-08 - **Last Updated**: 2021-08-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Getting Started ### Reference Documentation ### 生成代码接口 Post请求: #### 请求地址 [http://localhost:8080/backStageServer-codeGeneratorController/generatorCode](http://localhost:8080/backStageServer-codeGeneratorController/generatorCode) ### 示范json数据-请求体 { "dbType": "mysql", "driver": "com.mysql.cj.jdbc.Driver", "url": "jdbc:mysql://127.0.0.1:3306/fluent_mybatis?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8", "userName": "root", "passWord": "root", "srcDir": "src/main/java", "basePackage": "com.dream.music.stage.user", "daoDir": "src/main/java", "tableNameList": "student_score" } ### *相关字段解释* *[srcDir]:单独boot项目只需写 src/main/java 即可* *[basePackage]:模块的包路径* *[daoDir]:生成dao文件的模块包路径-源码中默认与srcDir一样* *[tableNameList]:表名数组集合* ### *生成代码* 1.配置好数据库 修改接口参数中的数据库名称以及需要生成的表名称 2.发送请求 3.生成dao代码 4.idea需要手动重新点击IDEA ---->Build-Project/ReBuild 编译功能 尽量再执行maven->clean->->install一次 ## 5.代码生成后 出现 xxxBaseDao爆错无法解决的问题·删除项目的 .idea 文件夹 重新打开项目 idea会自动重现加载 。 ------- [更过信息请查看官方文档](https://gitee.com/fluent-mybatis/fluent-mybatis/wikis/%E5%9F%BA%E6%9C%AC%E7%94%9F%E6%88%90%E9%85%8D%E7%BD%AE?sort_id=4151752) [Please check the official documents after waiting for information](https://gitee.com/fluent-mybatis/fluent-mybatis/wikis/%E5%9F%BA%E6%9C%AC%E7%94%9F%E6%88%90%E9%85%8D%E7%BD%AE?sort_id=4151752) ------- For further reference, please consider the following sections: * [Official Apache Maven documentation](https://maven.apache.org/guides/index.html) * [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.5.3/maven-plugin/reference/html/) * [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.5.3/maven-plugin/reference/html/#build-image)