# len-web-frame **Repository Path**: a198720/len-web-frame ## Basic Information - **Project Name**: len-web-frame - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-09-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 使用步骤 ## len-code-genereate ### 配置数据源 application-dev.yaml文件 ```yaml spring: datasource: url: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8 username: root password: root ``` ### 指定生成code的路径 application-dev.yaml文件 ```yaml lmp: mp: output-path: ..\len-web\src\main\java parent_package: com.len module: test author: lixin40 ``` MpGenerator.java中指定xml的存放地址 主要是修改../len-web/src/main/resources/mapper ```java FileUtil.move(new File(mpProperties.getOutputPath()+"/"+mpProperties.getParentPackage().replace(".","/")+"/"+mpProperties.getModule()+"/mapper/xml/"),new File("../len-web/src/main/resources/mapper"),true); FileUtil.del(new File(mpProperties.getOutputPath()+"/"+mpProperties.getParentPackage().replace(".","/")+"/"+mpProperties.getModule()+"/mapper/xml")); ``` ### 执行MpGeneratorTest ## len-web ### 配置数据源 application-dev.yml ```yaml # druid spring: datasource: url: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8 username: root password: root ``` ### 添加html templates下添加index.html ```html