zoukankan      html  css  js  c++  java
  • 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!

  • 相关阅读:
    json字符串数组判断其中
    json字符串数组判断其中
    jquery select chosen禁用某一项option
    数据库培训知识
    人员管理模块代码总结2015/8/12整理
    正则表达式在STARLIMS中的应用总结
    控件属性表
    Form-公共代码
    Server-Script公共代码
    Celient-Script公共代码
  • 原文地址:https://www.cnblogs.com/lori/p/8963952.html
Copyright © 2011-2022 走看看