Test source folder 'src/test/java' in project 'o2o' m...

来源:1-2 开发准备

Jarvis丶丶丶

2019-07-16

老师你好,我原本有这3个包的
src/main/java,
src/main/resources,
src/test/java

但是要添加第四个包src/test/resources中java build path配置Output folder时候添加target/test-classes,就会提示Test source folder ‘src/test/java’ in project ‘o2o’ m… output folder that is not also used for main sources,
如果按了确定 apply and close 按钮会暗掉

写回答

1回答

DreamWarrior

2019-07-17

项目右键->buildPath configure Build Path->点击选项卡Libraries->选中JRE System Library->
点击edit->选中Alternate JRE->选择jdk
点击finish,点击ok,自动出现src/main/java和src/test/java

Configure BuildPath  选择Source   双击Contains test source:yes 将其变成Contains test source:no 

0
1
翔仔
感谢同学的热心回复:)
2019-07-17
共1条回复

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5113 学习 · 8144 问题

查看课程