-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjectServiceImpl.java
More file actions
executable file
·31 lines (23 loc) · 646 Bytes
/
ProjectServiceImpl.java
File metadata and controls
executable file
·31 lines (23 loc) · 646 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* @description
* @date 2016-10-16
* @author hxg
*/
package UTS.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanListHandler;
import UTS.service.IProjectService;
import com.entity.UserTest;
public class ProjectServiceImpl implements IProjectService {
@Resource
QueryRunner queryRunner;
@Override
public List<UserTest> findAll() throws Exception {
String sql = "select * from tb_user";
List<UserTest> users = queryRunner.query(sql,
new BeanListHandler<UserTest>(UserTest.class));
return users;
}
}