Feeling configuration is correct, separate test postgre database connection is normal, but with a framework to perform connection problems, have talent which framework can help have a look?
The following is the content of the problems in the
The ERROR] [the 19:15:02 2020-05-05, 956] [com. Alibaba. Druid. Pool. DruidDataSource] testOnBorrow is true, validationQuery not set
[ERROR] [the 19:15:03 2020-05-05, 245] [com. Alibaba. Druid. Pool. DruidDataSource] dataSource init ERROR
Java. SQL. SQLException: ${. JDBC driver}
At com. Alibaba. Druid. Util. JdbcUtils. CreateDriver (JdbcUtils. Java: 500)
At com. Alibaba. Druid. Pool. DruidDataSource. Init (DruidDataSource. Java: 382)
At com. Alibaba. Druid. Pool. DruidDataSource. GetConnection (DruidDataSource. Java: 622)
At com. Alibaba. Druid. Pool. DruidDataSource. GetConnection (DruidDataSource. Java: 618)
At com. Alibaba. Druid. Pool. DruidDataSource. GetConnection (DruidDataSource. Java: 79)
At org) springframework). The JDBC datasource. DataSourceUtils. DoGetConnection (DataSourceUtils. Java: 111)
At org) springframework). The JDBC datasource. DataSourceUtils. GetConnection (DataSourceUtils. Java: 77)
The at org. Mybatis. Spring. Transaction. SpringManagedTransaction. OpenConnection (SpringManagedTransaction. Java: 82)
The at org. Mybatis. Spring. Transaction. SpringManagedTransaction. GetConnection (SpringManagedTransaction. Java: 68)
The at org. Apache. Ibatis. Executor. BaseExecutor. GetConnection (BaseExecutor. Java: 336)
The at org. Apache. Ibatis. Executor. SimpleExecutor. PrepareStatement (SimpleExecutor. Java: 86)
The at org. Apache. Ibatis. Executor. SimpleExecutor. DoQuery (SimpleExecutor. Java: 62)
The at org. Apache. Ibatis. Executor. BaseExecutor. QueryFromDatabase (BaseExecutor. Java: 324)
The at org. Apache. Ibatis. Executor. BaseExecutor. Query (BaseExecutor. Java: 156)
The at org. Apache. Ibatis. Executor. CachingExecutor. Query (CachingExecutor. Java: 109)
The at org. Apache. Ibatis. Executor. CachingExecutor. Query (CachingExecutor. Java: 83)
The at org. Apache. Ibatis. Session. Defaults. DefaultSqlSession. SelectList (DefaultSqlSession. Java: 147)
The at org. Apache. Ibatis. Session. Defaults. DefaultSqlSession. SelectList (DefaultSqlSession. Java: 140)
The at Java. The base/JDK. Internal. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
I send up my Settings screenshot,
My Build_Path Settings
Individual test results is normal,
. According to the prompt if I mapper XML Settings has a problem, but I checked again and again a few times also didn't find any questions, please advice,
CodePudding user response:
Again this morning and found is applicationContext - mapper. Line about placeholder that caused by an error in XML, I write JDBC directly in applicationContext - mapper. XML file is normal connection, don't know why, have free time I have to study well,CodePudding user response: