这是怎么让com.itheima单独成一个包,config这些又在com.itheima下面呢

img


这是怎么让com.itheima单独成一个包,dao,config这些又在com.itheima下面呢。
我设置的要么是com.itheima.dao,要么是com,itheima,dao

  • 首先在java目录建一个 com.itheima.config 包
  • 然后继续在java目录,建 com.itheima.dao 包
  • 都建好了以后,config 和 dao就可以分开了

我发现了可以这样,先建了一个com.itheima包,这个包必须不是空的,先建一个类,再建包这时候就可以跟图片一样了