Vscode配置与Idea插件配置

更新时间:2023-06-28 05:18:23 阅读: 评论:0

油泵选型Vscode配置与Idea插件配置VsCode设置的配置
{
"editor.formatOnSave": true,
// "editor.formatOnType": true,
"files.autoSave": "afterDelay",
"editor.fontSize": 18,
"[html]": {
委托人英文"editor.defaultFormatter": "HookyQR.beautify"
},
"fig": "",
"beautify.language": {
"js": {
"type": [
"javascript",
"json",
"jsonc"
],
"filename": [
".jshintrc",
".jsbeautifyrc"
]
よっしゃ},
"css": [
"css",
"less",
"scss"
],
focud
"html": [
"htm",
"html",
"vue"
]
},
"editor.formatOnPaste": true,
"beautify.ignore": "",
"editor.defaultFormatter": "HookyQR.beautify",
"ust.untrustedFiles": "open",
"uWheelZoom": true,
"abledLanguages": [
"html"
],
"css.styleSheets": [
],
"workbench.iconTheme": "vscode-icons",
"editor.suggest.snippetsPreventQuickSuggestions": fal,
"iggerExpansionOnTab": true,
"typescript.tsdk": "",
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
},
"files.associations": {
"*.ejs": "html",
"*.js": "html",
"*.vue": "html"
},
}
EasyCode⾃定义配置
entity.java
##引⼊宏定义
$!define
##使⽤宏定义设置回调(保存位置与⽂件后缀)
#save("/entity", ".java")
##使⽤宏定义设置包后缀
#tPackageSuffix("entity")
##使⽤全局变量实现默认包导⼊
$!autoImport
import java.io.Serializable;
##使⽤宏定义实现类注释信息
#tableComment("实体类")
public class $!{tableInfo.name} implements Serializable {
private static final long rialVersionUID = $!tool.rial();
#foreach($column in $tableInfo.fullColumn)
#if(${t})/**
* ${t}
*/#end
private $!{ClsNameByFullName($pe)} $!{column.name};
#end
#foreach($column in $tableInfo.fullColumn)
##使⽤宏定义实现get,t⽅法
#getSetMethod($column)
#end
}
entityData.java
##引⼊宏定义
$!define
##使⽤宏定义设置回调(保存位置与⽂件后缀)
#save("/entity", ".java")
##使⽤宏定义设置包后缀
#tPackageSuffix("entity")
##使⽤全局变量实现默认包导⼊
$!autoImport
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
perimental.Accessors;
import java.io.Serializable;
e的过去分词##使⽤宏定义实现类注释信息
#tableComment("实体类")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class $!{tableInfo.name} implements Serializable {
private static final long rialVersionUID = $!tool.rial();
#foreach($column in $tableInfo.fullColumn)
#if(${t})/**
* ${t}
*/#end
private $!{ClsNameByFullName($pe)} $!{column.name};
#end
}
mapper.java
##定义初始变量
#t($tableName = $tool.append($tableInfo.name, "Mapper"))
##设置回调
$!callback.tFileName($tool.append($tableName, ".java"))
$!callback.tSavePath($tool.append($tableInfo.savePath, "/mapper"))
##拿到主键
#if(!$tableInfo.pkColumn.isEmpty())
#t($pk = $(0))
#end
#if($tableInfo.savePackageName)package $!{tableInfo.savePackageName}.#{end}mapper; import $!{tableInfo.savePackageName}.entity.$!{tableInfo.name};
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* $!{t}($!{tableInfo.name})表数据库访问层
*
* @author $!author
* @since $!time.currTime()
*/
@Repository
public interface $!{tableName} {
/**
* 通过ID查询单条数据
*
* @param $!pk.name 主键
* @return 实例对象
relationship可数吗*/
$!{tableInfo.name} queryById($!pk.shortType $!pk.name);
/**
* 查询指定⾏数据
*
* @param offt 查询起始位置
* @param limit 查询条数
filename* @return 对象列表
*/
List<$!{tableInfo.name}> queryAllByLimit(@Param("offt") int offt, @Param("limit") int limit);    /**
* 通过实体作为筛选条件查询
*
* @param $!tool.firstLowerCa($!{tableInfo.name}) 实例对象
centralization* @return 对象列表
*/
List<$!{tableInfo.name}> queryAll($!{tableInfo.name} $!tool.firstLowerCa($!{tableInfo.name}));    /**
* 新增数据
*
* @param $!tool.firstLowerCa($!{tableInfo.name}) 实例对象
* @return 影响⾏数
*/
int inrt($!{tableInfo.name} $!tool.firstLowerCa($!{tableInfo.name}));
/**
* 批量新增数据(MyBatis原⽣foreach⽅法)
*
* @param entities List<$!{tableInfo.name}> 实例对象列表
* @return 影响⾏数
*/
int inrtBatch(@Param("entities") List<$!{tableInfo.name}> entities);
/**
* 批量新增或按主键更新数据(MyBatis原⽣foreach⽅法)
*
* @param entities List<$!{tableInfo.name}> 实例对象列表
* @return 影响⾏数
*/
int inrtOrUpdateBatch(@Param("entities") List<$!{tableInfo.name}> entities);
/**
* 修改数据
*
* @param $!tool.firstLowerCa($!{tableInfo.name}) 实例对象
* @return 影响⾏数
*/
int update($!{tableInfo.name} $!tool.firstLowerCa($!{tableInfo.name}));
/**
* 通过主键删除数据
*
* @param $!pk.name 主键
* @return 影响⾏数
*/
int deleteById($!pk.shortType $!pk.name);
}
rvice.java
##定义初始变量
#t($tableName = $tool.append($tableInfo.name, "Service"))
##设置回调
$!callback.tFileName($tool.append($tableName, ".java"))
$!callback.tSavePath($tool.append($tableInfo.savePath, "/rvice"))
##拿到主键
#if(!$tableInfo.pkColumn.isEmpty())
#t($pk = $(0))
#end
#if($tableInfo.savePackageName)package $!{tableInfo.savePackageName}.#{end}rvice; import $!{tableInfo.savePackageName}.entity.$!{tableInfo.name};
import java.util.List;
/**
* $!{t}($!{tableInfo.name})表服务接⼝
*
* @author $!author
* @since $!time.currTime()
*/
public interface $!{tableName} {
/**
* 通过ID查询单条数据
*
* @param $!pk.name 主键
* @return 实例对象
*/
$!{tableInfo.name} queryById($!pk.shortType $!pk.name);
/**
勇敢英文* 查询多条数据
*
* @param offt 查询起始位置
* @param limit 查询条数
* @return 对象列表
*/
List<$!{tableInfo.name}> queryAllByLimit(int offt, int limit);
/**
* 新增数据
*
* @param $!tool.firstLowerCa($!{tableInfo.name}) 实例对象
* @return 实例对象
*/
$!{tableInfo.name} inrt($!{tableInfo.name} $!tool.firstLowerCa($!{tableInfo.name}));
/
**
* 修改数据
*
* @param $!tool.firstLowerCa($!{tableInfo.name}) 实例对象
* @return 实例对象
*/
$!{tableInfo.name} update($!{tableInfo.name} $!tool.firstLowerCa($!{tableInfo.name}));
/**
* 通过主键删除数据
*
* @param $!pk.name 主键
* @return 是否成功
*/
boolean deleteById($!pk.shortType $!pk.name);
}
rviceImpl.java
##定义初始变量
#t($tableName = $tool.append($tableInfo.name, "ServiceImpl"))
##设置回调
$!callback.tFileName($tool.append($tableName, ".java"))
$!callback.tSavePath($tool.append($tableInfo.savePath, "/rvice/impl"))
##拿到主键
#if(!$tableInfo.pkColumn.isEmpty())
#t($pk = $(0))
#end
#if($tableInfo.savePackageName)package $!{tableInfo.savePackageName}.#{end}rvice.impl; import $!{tableInfo.savePackageName}.entity.$!{tableInfo.name};
import $!{tableInfo.savePackageName}.mapper.$!{tableInfo.name}Mapper;
import $!{tableInfo.savePackageName}.rvice.$!{tableInfo.name}Service;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
/**
* $!{t}($!{tableInfo.name})表服务实现类
*
* @author $!author
* @since $!time.currTime()
*/
@Service("$!tool.firstLowerCa($!{tableInfo.name})Service")
public class $!{tableName} implements $!{tableInfo.name}Service {
@Autowired
private $!{tableInfo.name}Mapper $!tool.firstLowerCa($!{tableInfo.name})Mapper;
/**
* 通过ID查询单条数据
*
* @param $!pk.name 主键
* @return 实例对象
*/
@Override
public $!{tableInfo.name} queryById($!pk.shortType $!pk.name) {
return this.$!{tool.firstLowerCa($!{tableInfo.name})}Mapper.queryById($!pk.name);
}
/**
* 查询多条数据
*
* @param offt 查询起始位置
* @param limit 查询条数
* @return 对象列表
*/
新东方电话@Override
public List<$!{tableInfo.name}> queryAllByLimit(int offt, int limit) {
return this.$!{tool.firstLowerCa($!{tableInfo.name})}Mapper.queryAllByLimit(offt, limit);
}
/**
* 新增数据
*
* @param $!tool.firstLowerCa($!{tableInfo.name}) 实例对象
* @return 实例对象
*/
@Override
public $!{tableInfo.name} inrt($!{tableInfo.name} $!tool.firstLowerCa($!{tableInfo.name})) {
this.$!{tool.firstLowerCa($!{tableInfo.name})}Mapper.inrt($!tool.firstLowerCa($!{tableInfo.name}));        return $!tool.firstLowerCa($!{tableInfo.name});
}
/**
* 修改数据
*
* @param $!tool.firstLowerCa($!{tableInfo.name}) 实例对象
* @return 实例对象
*/
@Override
public $!{tableInfo.name} update($!{tableInfo.name} $!tool.firstLowerCa($!{tableInfo.name})) {
this.$!{tool.firstLowerCa($!{tableInfo.name})}Mapper.update($!tool.firstLowerCa($!{tableInfo.name}));        return this.queryById($!{tool.firstLowerCa($!{tableInfo.name})}.get$!tool.firstUpperCa($pk.name)());    }
/**
* 通过主键删除数据
*
* @param $!pk.name 主键
* @return 是否成功
*/
@Override
public boolean deleteById($!pk.shortType $!pk.name) {
return this.$!{tool.firstLowerCa($!{tableInfo.name})}Mapper.deleteById($!pk.name) > 0;
}
}
controller.java
##定义初始变量
#t($tableName = $tool.append($tableInfo.name, "Controller"))
##设置回调
$!callback.tFileName($tool.append($tableName, ".java"))
$!callback.tSavePath($tool.append($tableInfo.savePath, "/controller"))
##拿到主键
#if(!$tableInfo.pkColumn.isEmpty())
#t($pk = $(0))
#end
#if($tableInfo.savePackageName)package $!{tableInfo.savePackageName}.#{end}controller;
import $!{tableInfo.savePackageName}.entity.$!{tableInfo.name};
import $!{tableInfo.savePackageName}.rvice.$!{tableInfo.name}Service;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
/**
* $!{t}($!{tableInfo.name})表控制层
*
* @author $!author

本文发布于:2023-06-28 05:18:23,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/90/160151.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:数据   查询   定义   设置   实现
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图