java.lang.IllegalStateException异常解决方法 这个异常大多数是由文件读取,下载时抛出,但是偶尔也会由类型转换时异常抛出此异常. 错误:Optional int parameter 'primaryKeyId' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object w…