spring-boot-gradle-plugin - 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)
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)
解决方案
推荐阅读
- java - 如何将 javax.json jar 正确包含到已部署的 .jar 文件中
- ionic-framework - 将样式表导入 app.scss 以在整个项目中使用
- javascript - 带有html2canvas的jsPDF产生模糊的pdf?
- laravel - Mongo 查找条件
- mysql - 在 MySQL 服务器版本 8 上执行 MySQL 查询时出错
- python - 如何创建一个空白的日期时间对象?所以我可以找到时间增量的平均值
- html - 为什么我在使用 DJANGO 表单集时没有从 CharField 获得标签
- ruby-on-rails - 在 ruby on rails 中找不到 Order
- c - 添加具有给定条件的数组元素
- azure - 使用 API 扩展 Azure SQL DB