首页 > 解决方案 > no suitable constructor found for File(String)

问题描述

I do not understand what the error is telling me, could someone please explain? This is my code(spring boot)

enter image description here

BoardController.java:60: error: no suitable constructor found for File(String)
            if (!new File(savePath).exists()) {
                 ^
    constructor File.File(Long,String,String,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor File.File() is not applicable
      (actual and formal argument lists differ in length)

标签: spring-boot-gradle-plugin

解决方案


推荐阅读