search

Home  >  Q&A  >  body text

spring - 在学习activiti中遇到的一个关于java路径的问题

如图,一个普通java工程。activiti.cfg.xml文件明明是在config目录下,为什么路劲写的时候没有带上config?这里的相对路径是相对于谁吗?

PHPzPHPz2888 days ago367

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 17:42:11

    Open .classPath文件,在文件中可以发现有这么一行:<classpathentry kind="src" path="src/config"/>这样当编译时,就会将src/config in the project root directory and compile directly to the root directory.

    reply
    0
  • 迷茫

    迷茫2017-04-17 17:42:11

    Go to the target directory and look at the structure in the classes directory. That is the compiled result. When you execute, you use the compiled result, not the source code

    reply
    0
  • Cancelreply