The solution to the problem is that the database query time does not have time, minutes, And seconds. In a company project, the dynamic SQL method is used to query the Oracle database. When the Date type field is displayed, only the Date type field is displayed, and no time is minutes. Analysis: 1. As we all know, there are many Oralce Date types, such as Date and Timestamp. The Date type pair uses the java. SQL. Date type, and the Timestamp pair uses the java. SQL. Timestamp type. Both types are inherited from java. util. date, where java. SQL. date does not have time, minute, and second. You can check javaApi 2. the getObject (*) method of ResultSet returns java by default when the Date type is used. SQL. date www.2cto.com 3. The solution provided by many people on the Internet is to change the database Date type to the Timestamp type, and the database type DBA will not allow you to change it, in Oracle, DBAs do not have strict requirements on time and minute/second. Instead, it is recommended to use Date instead of Timestamp to save resources. 4. The Date type specified as Timestamp in ibatis's ResultMap can be displayed normally. it is found that rs is used for fields of the Date type. getTimestamp (*) can be normally displayed. solution 2. Add the Virtual Machine Parameters of the server/Java application:-Doracle. jdbc. v8Compatible = "true"