最近将项目的结构重新调整,分了很多单独的包,直接在idea中拖动文件或文件夹,最后导致有部分类找不到引用报错。解决办法:
引用不报错了,但是启动却报错:
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
原因:idea没有指定resource目录,导致启动时没有读到配置文件
鼠标点击resource文件夹右键--MarkDirectory as -> Resources Root
再次启动,正常