Exception in thread "main" org.springframework.jdbc.IncorrectResultSetColumnCountException: Incorrect column count: expected 1 , actual 4
at org.springframework.jdbc.core.SingleColumnRowMapper.mapRow(SingleColumnRowMapper.java: 87 )
at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java: 92 )
at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java: 1 )
at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java: 445 )
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java: 395 )
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java: 455 )
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java: 463 )
at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java: 471 )
at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java: 476 )
at com.ylp.dao.UserDao.getById(UserDao.java: 45 )
at com.ylp.dao.Test.main(Test.java: 17 )
|