两种方式:1、IDEA快捷键:
Ctrl + Alt + M
2、选中整块代码 –> 点击右键 –> Refactor –> Extract –>Method
posted on 2022-10-20 15:05 爱文(Iven) 阅读(978) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 爱文(Iven) Powered by .NET 8.0 on Kubernetes