<repo_name>jyoung9154/ITbank<file_sep>/Project/src/main/java/com/project/proto/dao/Dao.java
package com.project.proto.dao;

import java.util.List;



import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;



@Repository
public class Dao {

	@Autowired
	private SqlSession sqlSession;
	
	/*전체 사원 수*/ 
	public List<Dao> selectMember() {
		return sqlSession.selectList("selectList");
	}
	
	
}
<file_sep>/Project/src/main/java/com/project/proto/command/Main.java
package com.project.proto.command;

import org.springframework.ui.Model;

import com.project.proto.dao.Dao;



public class Main implements Command {

	@Override
	public void execute(Model model,Dao dao) {
		// TODO Auto-generated method stub
		model.addAttribute("member",dao.selectMember());
	}

}
<file_sep>/README.md
# ITbank
팀 프로젝트 저장소
<file_sep>/Project/src/main/java/com/project/proto/MainController.java
package com.project.proto;


import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


import com.project.proto.command.Command;
import com.project.proto.command.Main;
import com.project.proto.dao.Dao;



@Controller
public class MainController {

	Command comm;


	@Autowired
	Dao dao;
	
	
	@RequestMapping(value = "/")
	public String main(Model model) {
		
		comm = new Main();
		comm.execute(model,dao);
	
		return "main";
	}



}
