Tomcat HTTP状态404-工件部署期间发生错误

时间:2018-09-28 10:31:08

标签: spring maven spring-boot

我现在做一个Spring引导项目并进行引导。我通过Tomcat运行应用程序并收到此错误,

enter image description here

我的项目结构很小,

enter image description here

提供了Application类,

   var image_p: GPUImagePicture?
   var filterImageview: UIImageView! // to display images

   let inputImage = filterImageview.image
    if let anImage = inputImage {
        image_p = GPUImagePicture(image: anImage)
    }

    let filter1 = GPUImageSobelEdgeDetectionFilter()//GPUImageCannyEdgeDetectionFilter()
    image_p?.addTarget(filter1)
    image_p?.processImage()

    let outputImage = filter1.imageFromCurrentlyProcessedOutput()
    filterImageview.image = outputImage

HomeController类在这里,

@SpringBootApplication
public class Application{


    public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args);
    }
}

下面提供了下部编辑器

enter image description here

在服务器日志中,我收到一个错误,这可能是导致失败的原因:“工件部署期间出错。有关详细信息,请参阅服务器日志。”

@Controller
public class HomeController{

    @GetMapping("/")
    public String index() {
        return "index";
    }
}

我检查了一下,并认为没有提供工件中的Connected to server [2018-09-28 04:03:18,376] Artifact WA Exploded: Artifact is being deployed, please wait... [2018-09-28 04:03:18,391] Artifact WA Exploded: Error during artifact deployment. See server log for details. [2018-09-28 04:03:18,391] Artifact WA Exploded: com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException: /Users/chaklader/IdeaProjects/SpringBoot/out/artifacts/WA_Exploded not found for the web module. 的{​​{1}}。我这里有一些屏幕截图,

enter image description here

enter image description here

enter image description here

下面提供了<output root>文件

WA Exploded

如何解决该问题?我感谢任何建议。

0 个答案:

没有答案