java

关注公众号 jb51net

关闭
首页 > 软件编程 > java > idea自动添加版权许可证信息

idea如何自动添加版权许可证信息

作者:varyuan

这篇文章主要介绍了idea如何自动添加版权许可证信息问题,具有很好的参考价值,希望对大家有所帮助。如有错误或未考虑完全的地方,望不吝赐教

idea设置版权许可证, 本例以apache2为例

1.新建名为apache2的模板

2.将以下内容

[name of copyright owner]替换成你自己后,

复制到Copyright text 

点击Apply

Copyright $today.year [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

3.应用许可证到当前项目

4.新建一个类 

可看到已自动添加版权许可证

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。

您可能感兴趣的文章:
阅读全文