All Projects → Rellopn → generateDF

Rellopn / generateDF

Licence: other
生成目录结构及文件

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to generateDF

VBA-toolbox
The VBA toolbox
Stars: ✭ 103 (+586.67%)
Mutual labels:  toolbox
treestoolbox
TREES toolbox
Stars: ✭ 20 (+33.33%)
Mutual labels:  toolbox
FAIR.m
Flexible Algorithms for Image Registration
Stars: ✭ 103 (+586.67%)
Mutual labels:  toolbox
wb-toolbox
Simulink toolbox to rapidly prototype robot controllers
Stars: ✭ 20 (+33.33%)
Mutual labels:  toolbox
FFmpegBox
📦 FFmpeg command line tool box for Android
Stars: ✭ 38 (+153.33%)
Mutual labels:  toolbox
Robotlib.jl
Robotics library written in the Julia programming language
Stars: ✭ 32 (+113.33%)
Mutual labels:  toolbox
monster
MONSTeR is a framework built around the LTE system toolbox available in Matlab
Stars: ✭ 21 (+40%)
Mutual labels:  toolbox
fvtt-data-toolbox
Foundry VTT Data Toolbox
Stars: ✭ 17 (+13.33%)
Mutual labels:  toolbox
Krypton-Toolkit-Suite-NET-Core
A update to Component factory's krypton toolkit to support .NET Framework 3.5 to .NET Core
Stars: ✭ 27 (+80%)
Mutual labels:  toolbox
FISCO-BCOS-Toolbox
【Tools】FISCO BCOS Sol Toolbox created by SUIBE-Blockchain-Team.
Stars: ✭ 34 (+126.67%)
Mutual labels:  toolbox
bruceR
📦 BRoadly Useful Convenient and Efficient R functions that BRing Users Concise and Elegant R data analyses.
Stars: ✭ 110 (+633.33%)
Mutual labels:  toolbox
verified calibration
Calibration library and code for the paper: Verified Uncertainty Calibration. Ananya Kumar, Percy Liang, Tengyu Ma. NeurIPS 2019 (Spotlight).
Stars: ✭ 93 (+520%)
Mutual labels:  toolbox
Standard-Toolkit
An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET Core/.NET
Stars: ✭ 194 (+1193.33%)
Mutual labels:  toolbox
Awesome-Tools-For-WebDevelopers
Awesome Tools For Web Developers
Stars: ✭ 57 (+280%)
Mutual labels:  toolbox
RaPId
RaPId (a recursive acronym for "Rapid Parameter Identification") utilizes different optimization and simulation technologies to provide a framework for model validation and calibration of any kind of dynamical systems, but specifically catered to power systems.
Stars: ✭ 35 (+133.33%)
Mutual labels:  toolbox
toolbox
dein ToolBox - C# .Net Library with utilities like: command line, files, log, platform, shell, system, transform and validation [ Win+Mac+Linux ]
Stars: ✭ 46 (+206.67%)
Mutual labels:  toolbox
hydrobox
hydrological preprocessing and analysis toolbox build upon pandas and numpy
Stars: ✭ 18 (+20%)
Mutual labels:  toolbox
macro-maker
A TERA Toolbox module to help you make macros for any class, using only AHK with no other dependency.
Stars: ✭ 16 (+6.67%)
Mutual labels:  toolbox
couleurstoolbox
🍱 My toolbox that I take with me everytime I reinstall windows.
Stars: ✭ 72 (+380%)
Mutual labels:  toolbox
circtools
circtools: a modular, python-based framework for circRNA-related tools that unifies several functionalities in a single, command line driven software.
Stars: ✭ 19 (+26.67%)
Mutual labels:  toolbox

生成目录结构及文件的工具

工具运行结果


setting.yaml中定义生成的目录结构

 生成的文件夹及文件:

如何使用


配置setting.yaml:

  1. 要生成的目录结构,目录层级可以无限延伸。
  2. 在哪些目录下生成1所定义的目录。注意要从根目录写起,如果是在windows下则例如:D:\demoDir\testRestful\
  3. 要与2所定义的根目录数量保持一致,如果2要在三个目录下生成,则3也要定义三次。下面以每一个逗号为分隔来介绍。
    *使用的模版文件。
    *后缀名
    *包名。
    *文件名后缀。
  4. 自定义内容,将替换模版内#{}内同名的字符

最后运行main方法就可以了。

模版说明


模版文件在/template包下。 下面举一个例子🌰

package #{nowPath};

import com.maryun.model.PageData;
import com.maryun.restful.base.BaseRestful;
import #{mapperPackage}.#{importPath}.#{UmapperName}Mapper;
import com.maryun.utils.WebResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * @Descriptkon
 *
 * @author #{author} #{date}#{secondAu}
 */
@RestController
@RequestMapping("/app/#{restName}eRestful")
public class #{UrestName}Restful extends BaseRestful{
    @Resource
    private #{UmapperName}Mapper homeThreeMapper;

    /**
     *
     * @param pd
     * @return
     **/
    @RequestMapping("")
    public PageData template(@RequestBody PageData pd) {
        return WebResult.requestSuccess();
    }
}

这是testRestful目录下的模版文件,一目了然,#{}及其内部的内容将会被定义在setting.yaml中的文件所替换。
其中有一些特殊的将在下面列举出来,在定义setting.yaml时注意避免与这些规则冲突。

  • #{nowPath}:当前包的位置。
  • #{importPath}:递归的目录的叠加。
  • #{date}:当前日期。
  • 任何的#{}中的第一个字母为大写的"U",替换后的内容首字母会大写。
  • 如果#{}的内容没有在setting.yaml中定义过的话,将会以当前的文件夹的名字替换。

最后说两句


如果使用中有任何问题请联系我[email protected]或者提交issue。

License


MIT

Copyright (c) 2013-present, Rellopn

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].