关与JdbcTemplate"的thread "main" org.springframework.jdbc.BadSqlGrammarException

When confronted with this problem org.springframework.jdbc.BadSqlGrammarException

 

  The first step: going to check whether sql syntax error occurs, it is simple, it navicat statement to fling a dos window or run sql error can be ruled out

  Step two: Check the check jdbc configuration tools:

    Example: Use c3p0 connection pool, need to check c3p0-config.xml file configuration, db configuration is correct

       Arrived with druid connection pool, you need to check the druid.properties configuration file, db configuration is correct

 

  Do not put limitations of thinking in sql, and because navicat dos window, there is no implementation of it a mistake to understand, so to immediately think of db configuration is not retained on a project

Guess you like

Origin www.cnblogs.com/mixiu26/p/11298062.html