在处理java.util.Date的输入请求参数(当然是字符串类型)时,我遇到了问题。DateFormat.getDateInstance().parse(dateString); date = new Date();}
它在提交表单后抛出一个异常BeanUtils.populate BeanUtils.populate java.lang.IllegalArgumentEx
在独眼巨人响应“使用参考资料进行尝试”块中,我希望将IOException映射到自定义的异常类型。我在Javaslang中也尝试过这一点,而且看起来不那么容易,因为它处理所有异常都是一样的。Try.failure(new ConnectionError("Could not read from server", string.failureGet()));这能用更优雅的方式做吗免责声明:我是一个新手,一般使用Cyclops库<