java~IDEA引用包时分组所有java包

对于java系统包,我们的IDEA里开发项目时,如果你使用了java系统包,如import java.util,那么,你可以把它和其它第三方的包分开,这样更清晰,我们可以在设置里,代码风格,java ,导入包菜单去实现。

而有些代码样式简检工具要求把所有包名在引用时都排序,你java包不能搞特殊化,这时,就需要把这两个选项去掉,你向google style这种,它需要按着字母去排列,这时你就需要把它去掉!

这种是混在一起的:

package cn.pilipa.pixel.controller;

import cn.pilipa.pixel.model.ClientAccount;
import cn.pilipa.pixel.model.Operator;
import cn.pilipa.pixel.model.client.Employee;
import cn.pilipa.pixel.repository.EmployeeRepository;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.time.YearMonth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;

下面这个是把java包分开的,更清晰:

package com.lind.springDemoReactive.model;

import lombok.*;
import org.springframework.data.annotation.Id;

import java.util.Date;
import java.util.Map;

 这个文章虽然没什么技术含量,但有时确实困绕我们!

Thanks!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值