当前位置:网站首页>Jenkins reported an error. Illegal character: '\ufeff'. Class, interface or enum are required

Jenkins reported an error. Illegal character: '\ufeff'. Class, interface or enum are required

2022-07-05 07:13:00 Just as young

Preface

After uploading the code, we are preparing to Jenkins Build... Manually , It's the wrong report , As shown in the figure below :
 Insert picture description here
It's obviously caused by code , Suddenly think of me Java Files are copied from other projects , Let's reset the code

solve


1、 open idea, Select... In the lower right corner of the error file UTF-8

 Insert picture description here
2、 choice GBK
 Insert picture description here
3、 Click on CONVERT

 Insert picture description here
4、 Repeat the above steps , Change the code back UTF-8 Just go

原网站

版权声明
本文为[Just as young]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140559379823.html