springboot開發介面報錯Optional int parameter 'userId' is present but cannot be translated into a null v......
springboot開發介面報錯
Optional int parameter 'userId' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type

image.png
原來是這樣的:

image.png
解決方案:

image.png
相關文章
- Required parameter $xxx follows optional parameter $yyyUI
- 使用mybatis報錯:Error setting non null for parameter #4 with JdbcType TIMESTAMPMyBatisErrorNullJDBC
- Cannot set property 'innerHTML' of nullHTMLNull
- SpingBoot - Mybatis報錯:For artifact {com.mysql:mysql-connector-j:null:jar}: The version cannot be empty.bootMyBatisMySqlNullJAR
- vs2022匯入optional庫optional還報錯,解決
- MYSQL timestamp NOT NULL插入NULL的報錯問題MySqlNull
- allowedOrigins cannot contain the gateway 報錯AIGateway
- null 不好,我推薦你使用 OptionalNull
- Cannot set property ‘type‘ of null(vue)NullVue
- 開發中遇到的bug-Cannot set property ‘__VUE_DEVTOOLS_UID__‘ of nullVuedevUINull
- 《Java 8 in Action》Chapter 10:用Optional取代nullJavaAPTNull
- null 不好,我真的推薦你使用 OptionalNull
- gateway 報錯 allowedOrigins cannot contain the specialGatewayAI
- ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsedHive
- 關閉tomcat報錯Cannot allocate memoryTomcat
- 前端報錯:cannot read property length of undefined前端Undefined
- Django報錯ValueError: invalid literal for int() with base 10:DjangoError
- 1.python報錯:TypeError: 'int' object is not subscriptablePythonErrorObject
- 專案實戰介面開發SpringBootSpring Boot
- SpringBoot整合Redis開發RESTful API介面Spring BootRedisRESTAPI
- cannot convert (type interface {}) to type int: need type assertion
- 淘寶旺旺號轉 userid 或 uid 介面與方法UI
- SpringBoot配置HTTPS及開發除錯Spring BootHTTP除錯
- ant打包出現null returned: 1報錯Null
- Spring Boot整合Swagger報錯:"this.condition" is nullSpring BootSwaggerNull
- 開啟 Word 文件報錯: Cannot find the Word document template:WordToRgm.dot
- springboot 介面引數型別為LocalDateTime解析失敗導致介面報錯 -解決Spring Boot型別LDA
- springboot整合mina報錯Spring Boot
- Java--Eureka報錯java.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not presentJavaExceptionXMLContext
- SQL2012報錯:cannot find one or more cpmponentsSQL
- object dict cannot be used in await expression報錯解釋ObjectAIExpress
- React報錯之Function components cannot have string refsReactFunction
- vue+echarts報錯Cannot read property ‘init‘ of underfinedVueEcharts
- GoldenGate OGG-01004 ORA-01400 Cannot insert null into ...GoNull
- 異常:java.sql.SQLIntegrityConstraintViolationException: Column 'category' cannot be nullJavaSQLAIExceptionGoNull
- 故障分析 | MySQL 遷移後 timestamp 列 cannot be nullMySqlNull
- DataTables 1.10錯誤: requested unknown parameter
- 請求介面報錯