首页 > 其他分享 >idea类/方法注释设置

idea类/方法注释设置

时间:2023-04-03 18:02:24浏览次数:29  
标签:return NAME idea 注释 params result 设置 date def

类:
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")
/**
* ${NAME}
*
* @description: 接口处理
* @author: ${USER}
* @date: ${DATE} ${TIME}
*/
public class ${NAME} {
}

方法:
**
*
*
$param$
* @return $return$
* @throws
* @author yan xu
* @date $date$ $time$
*/

param : groovyScript("def result='';def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList();for(i = 0; i < params.size(); i++){result+=' * @param ' + params[i] + ((i < params.size() - 1) ? '\\n' : '')};return result",methodParameters())
return : groovyScript("def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split('<').toList(); for(i = 0; i < params.size(); i++) {if(i!=0){result+='<';};  def p1=params[i].split(',').toList();  for(i2 = 0; i2 < p1.size(); i2++) { def p2=p1[i2].split('\\\\.').toList();  result+=p2[p2.size()-1]; if(i2!=p1.size()-1){result+=','}  } ;  };  return result", methodReturnType())
data : date()
time : time()

标签:return,NAME,idea,注释,params,result,设置,date,def
From: https://www.cnblogs.com/jiuchenchen/p/17283851.html

相关文章

  • css 设置 div等于屏幕的时候直角,小于屏幕圆角
    .card{border-radius:clamp(0px,((100vw-4px)-100%)*9999,8px);}clamp()clamp()函数的作用是把一个值限制在一个上限和下限之间,当这个值超过最小值和最大值的范围时,在最小值和最大值之间选择一个值使用。它接收三个参数:最小值、首选值、最大值。......
  • 设置不登录访问后端
    取消多租户定义的SpringSecurity配置适配器实现/***配置URL的安全配置*<p>*anyRequest|匹配所有请求路径*access|SpringEl表达式结果为true时可以访问*anonymous|匿名可以访问*den......
  • 设置不登录访问后端
    取消多租户定义的SpringSecurity配置适配器实现@AutoConfiguration@EnableGlobalMethodSecurity(prePostEnabled=true,securedEnabled=true)publicclassYudaoWebSecurityConfigurerAdapter{@BeanprotectedSecurityFilterChainfilterChain(HttpSecurity......
  • 使用Newtonsoft.Json在Net6中设置时间格式(含T/不含T)
    实例一:JsonSerializerSettingsjsonSettings=newJsonSerializerSettings{DateFormatString="yyyy-MM-ddHH:mm:ss.fff",};Modelmodel=newModel{CreatedAt=DateTime.UtcNow};......
  • Jmeter的http信息头管理器设置
    什么是信息头:请求头什么时候用?cookietoken或者是其他的信息的时候;我们的场景设计?反爬虫添加信息头--模拟浏览器去发送请求--user-agent  ......
  • windows 10 系统 和 VMware Workstation 虚拟机网络互通设置
    windows10系统和VMwareWorkstation虚拟机网络互通设置 1,虚拟机设置网卡地址网关地址子网掩码2,VMwareWorkstation的编辑-虚拟网络编辑器,单击进入配置,为NAT类型。3,本地笔记本电脑的虚拟网卡配置地址网关掩码4,本地笔记本电脑使用secureCRT和winscp测试,连接和上传文件都OK......
  • jupyter 主题设置
      参考:(63条消息)JupyterNotebook设置黑色背景主题,字体大小,代码自动补全_jupyter黑色背景_极客阿宝的博客-CSDN博客 pipinstalljupyterthemes-ihttps://mirrors.aliyun.com/pypi/simple jt-tmonokai-ffira-fs13-cellw90%-ofs11-dfs11-T-N......
  • idea run控制台中文乱码
    教程:https://blog.csdn.net/weiwu13/article/details/121417404解决方式方式1:设置虚拟机参数(-Dfile.encoding=UTF-8)......
  • 230123-Git命令行代理及加速设置
    ⭐️方法1:设置全局国内/国外代理gitconfig--globalhttp.proxyhttp://127.0.0.1:XXXXgitconfig--globalhttps.proxyhttp://127.0.0.1:XXXX⭐️方法2:仅设置github的代理gitconfig--globalhttp.https://github.com.proxyhttp://127.0.0.1:XXXXgitconfig--globalhttp......
  • Visual Studio Code 使用插件 Markdown Preview Enhanced 导出文档时和自定义设置的预
    首先,我这里的预览主题设置为了vue.css  但是导出时并不正常,根本不是vue.css这个主题的外观。所以需要在插件中配置如下内容:以下配置项都在VSCode的Extension->MarkdownPreviewEnhanced中找到 1.CodeBlockTheme配置成预览一样  2.PrintBackground......