当前位置:网站首页>lombok -异常 non-static variable org cannot be referenced from a static context
lombok -异常 non-static variable org cannot be referenced from a static context
2022-06-09 11:27:00 【iiaythi】
lombok -异常 non-static variable org cannot be referenced from a static context
举例
上代码:
@Slf4j
public class LombokTest {
private String org;
public static void main(String[] args) {
System.out.println("a");
}
}
运行结果:
java: non-static variable org cannot be referenced from a static context
咋一看,我们没有没有引用 任何非静态变量
然后 将 变量 org 换成其他随便变量名,执行成功
好吧,感觉是 lombok 中使用的关键字, 坑坑坑!!!
边栏推荐
- Answers to six basic questions of security assessment for commercial password applications
- 4.<tag-回溯和组合及其剪枝>lt.39.组合总和 + lt.40. 组合总和 II dbc
- Preparation guide for 2022 soft test senior network planning designer
- How much bandwidth is required to view 1080p, 2k and 4K videos smoothly?
- 企评家用杜邦分析法剖析:华东建筑集团股份有限公司企业财务状况
- Endnote | 如何快速分享文献给别人(包含题录+备注+pdf文件)| endnote保存备份
- 11. < tag binary tree and BST foundation > lt.501 Mode in binary search tree
- Journal of the Chinese Academy of Sciences Bao Yungang: to accelerate the development of key core technologies, we must grasp the laws of Technological Development
- 04 | 万事预则立:中台建设前必须想清楚的四个问题
- H3C Certified Wireless Internet expert
猜你喜欢

使用U盘一比一拷贝核心板系统镜像的方法

Security evaluation of commercial password application

ThreadPoolExecutor 从精通到入门

6. exchange the nodes in the linked list in pairs

9.<tag-回溯和同层内去重的组合问题>lt.491. 递增子序列

From these papers in 2022, we can see the trend of recommended system sequence modeling

ThreadPoolExecutor from mastery to entry

LR11安装报错:此计算机上缺少vc2005_sp1_with_atl_fix_redist,请安装所有缺少的必要组件,然后重新运行此安装。

8. < tag backtracking and full arrangement > lt.46 Full Permutation + lt.47 Full arrangement II

05 | D4 model: overview of China Taiwan planning and construction methodology
随机推荐
计算字符串公式的结果
Journal of the Chinese Academy of Sciences Bao Yungang: to accelerate the development of key core technologies, we must grasp the laws of Technological Development
Leetcode camera minimum problem
企评家用杜邦分析法剖析:华东建筑集团股份有限公司企业财务状况
How to model 3DMAX (I)
Endnote | 如何快速分享文献给别人(包含题录+备注+pdf文件)| endnote保存备份
How much bandwidth is required to view 1080p, 2k and 4K videos smoothly?
10 | summary: summary of middle platform landing tool resources
08 | middle stage landing step 3: middle stage planning and design
MySQL 乐观锁、悲观锁、多粒度锁
Relay alphafold! Star pharmaceutical science and technology released a new era of tbind opening molecular protein complex structure prediction
IPv6 address assignment
Focus on DNS: analysis of ISC bind
2.<tag-回溯和组合及其剪枝>lt.216.组合总数 |||
SIGIR 2022 | CMI:结合对比学习和多兴趣挖掘的微视频推荐
[untitled]
9. lt.491 Longest increasing subsequence
Gson、FastJson、Jackson 序列化区别
中國科學院院刊 | 包雲崗:加速發展關鍵核心技術,必須把握技術發展的自身規律
Range method returns the object conversion method