change
This commit is contained in:
parent
0bcb46afb2
commit
cf72ddb16d
|
@ -69,7 +69,7 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<mainClass>com.taosdata.jdbc.example.jdbcTemplate.App</mainClass>
|
<mainClass>com.taosdata.example.jdbcTemplate.App</mainClass>
|
||||||
</manifest>
|
</manifest>
|
||||||
</archive>
|
</archive>
|
||||||
<descriptorRefs>
|
<descriptorRefs>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.taosdata.jdbc.example.jdbcTemplate;
|
package com.taosdata.example.jdbcTemplate;
|
||||||
|
|
||||||
|
|
||||||
import com.taosdata.jdbc.example.jdbcTemplate.dao.ExecuteAsStatement;
|
import com.taosdata.example.jdbcTemplate.dao.ExecuteAsStatement;
|
||||||
import com.taosdata.jdbc.example.jdbcTemplate.dao.WeatherDao;
|
import com.taosdata.example.jdbcTemplate.dao.WeatherDao;
|
||||||
import com.taosdata.jdbc.example.jdbcTemplate.domain.Weather;
|
import com.taosdata.example.jdbcTemplate.domain.Weather;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package com.taosdata.jdbc.example.jdbcTemplate.dao;
|
package com.taosdata.example.jdbcTemplate.dao;
|
||||||
|
|
||||||
public interface ExecuteAsStatement{
|
public interface ExecuteAsStatement{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package com.taosdata.jdbc.example.jdbcTemplate.dao;
|
package com.taosdata.example.jdbcTemplate.dao;
|
||||||
|
|
||||||
import com.taosdata.jdbc.example.jdbcTemplate.domain.Weather;
|
import com.taosdata.example.jdbcTemplate.domain.Weather;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package com.taosdata.jdbc.example.jdbcTemplate.dao.impl;
|
package com.taosdata.example.jdbcTemplate.dao.impl;
|
||||||
|
|
||||||
import com.taosdata.jdbc.example.jdbcTemplate.dao.ExecuteAsStatement;
|
import com.taosdata.example.jdbcTemplate.dao.ExecuteAsStatement;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.jdbc.core.JdbcTemplate;
|
import org.springframework.jdbc.core.JdbcTemplate;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
|
@ -1,20 +1,16 @@
|
||||||
package com.taosdata.jdbc.example.jdbcTemplate.dao.impl;
|
package com.taosdata.example.jdbcTemplate.dao.impl;
|
||||||
|
|
||||||
import com.taosdata.jdbc.example.jdbcTemplate.dao.WeatherDao;
|
import com.taosdata.example.jdbcTemplate.domain.Weather;
|
||||||
import com.taosdata.jdbc.example.jdbcTemplate.domain.Weather;
|
import com.taosdata.example.jdbcTemplate.dao.WeatherDao;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.jdbc.core.BatchPreparedStatementSetter;
|
import org.springframework.jdbc.core.BatchPreparedStatementSetter;
|
||||||
import org.springframework.jdbc.core.JdbcTemplate;
|
import org.springframework.jdbc.core.JdbcTemplate;
|
||||||
import org.springframework.jdbc.core.namedparam.SqlParameterSourceUtils;
|
|
||||||
import org.springframework.jdbc.core.simple.SimpleJdbcInsert;
|
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
public class WeatherDaoImpl implements WeatherDao {
|
public class WeatherDaoImpl implements WeatherDao {
|
|
@ -1,4 +1,4 @@
|
||||||
package com.taosdata.jdbc.example.jdbcTemplate.domain;
|
package com.taosdata.example.jdbcTemplate.domain;
|
||||||
|
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.taosdata.jdbc.example.jdbcTemplate;
|
package com.taosdata.example.jdbcTemplate;
|
||||||
|
|
||||||
|
|
||||||
import com.taosdata.jdbc.example.jdbcTemplate.dao.ExecuteAsStatement;
|
import com.taosdata.example.jdbcTemplate.dao.ExecuteAsStatement;
|
||||||
import com.taosdata.jdbc.example.jdbcTemplate.dao.WeatherDao;
|
import com.taosdata.example.jdbcTemplate.dao.WeatherDao;
|
||||||
import com.taosdata.jdbc.example.jdbcTemplate.domain.Weather;
|
import com.taosdata.example.jdbcTemplate.domain.Weather;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
|
@ -1,18 +0,0 @@
|
||||||
package com.taosdata.jdbc;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertTrue;
|
|
||||||
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Unit test for simple App.
|
|
||||||
*/
|
|
||||||
public class AppTest {
|
|
||||||
/**
|
|
||||||
* Rigorous Test :-)
|
|
||||||
*/
|
|
||||||
@Test
|
|
||||||
public void shouldAnswerWithTrue() {
|
|
||||||
assertTrue(true);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue