SSM框架遇到的错误:.NestedServletException

SSM框架遇到的错误:
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException:
Cause: java.sql.SQLException: Data truncated for column ‘asex’ at row 1
org.springframework.dao.DataIntegrityViolationException:
SSM框架遇到的错误:.NestedServletException

**解决方法:**页面中form表单设置method=“post”属性