Multipartbaby前台传这样的值后台定义什么类型怎么接收
public String uploadFile(@Param("file")File[] file) throws Exception {
UploadState state=null;
String string="";
for (File file2 : file) {
String fileName = file2.getName();
FileInputStream is = new FileInputStream(fileName);
state = UploadFileUtils.upload4Stream(fileName, path, is);
string = state.getState();
}
return jsons.json(1, 1, 1, string);
}
这是我写的打断点就是进不去
2017-9-14 10:43:25.290 DEBUG [http-bio-8080-exec-8] Found mapping for [POST] path=/public/getBspicportno : publicModule.getBspicportno(publicModule.java:1814)
2017-9-14 10:43:25.291 DEBUG [http-bio-8080-exec-8] Get 'publicModule'<class org.aotu.publics.module.publicModule>
2017-9-14 10:43:25.292 DEBUG [http-bio-8080-exec-8] select sys_bspicportno from sm_system_info
{"status": 1,"total": 1,"message": "查询成功","data":[{
"sys_bspicportno": "http://css85.bsd126.com:8"
}]}
上边显示没进接口 单下边怎么返回给他值了