---
title: "Springmvc : Failed to convert property value of type 'java.lang.String' to int"
author: "neverforget"
date: "2013-03-21T23:31:07Z"
tags: []
categories: ["行业应用"]
slug: "springmvc-failed-to-convert-property-value-of-type-java-lang-string-to-int"
draft: false
lastmod: "2013-04-01T14:30:55Z"
id: 1833801
url: "https://never-forget.iteye.com/blog/1833801"
---

Failed to convert property value of type 'java.lang.String' to required type 'int' for property

org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 8 errors


Fixed:

```java
Change int to Integer. 
```