add build.gradle dependencies(gson,poi,poi-ooxml) please refresh gradle

This commit is contained in:
Kana
2024-01-03 16:50:18 +09:00
parent 28eecf0f24
commit dac2f36cea
6 changed files with 44 additions and 4 deletions

View File

@@ -15,7 +15,17 @@ public class CategoryController {
@Autowired
CategoryService categoryService;
// 테스트
@GetMapping("/category/test")
public String testpage(Model m) {
List<CategoryDto> dto = categoryService.selectAllCategory();
m.addAttribute("dto", dto);
return "category/test";
}
// 카테고리 리스트 출력
@GetMapping("/category/list")
public String list(@RequestParam(name="p", defaultValue = "1")int p, Model m) {

View File

@@ -10,7 +10,7 @@ public interface CategoryMapper {
List<CategoryDto> categoryList(Map<String, Object> m);
CategoryDto selectByKanCode(String kan_code);
int createProcess(CategoryDto dto);
List<CategoryDto> selectAllCategory();
}

View File

@@ -37,7 +37,9 @@ public class CategoryService {
return 1;
}
public List<CategoryDto> selectAllCategory() {
return mapper.selectAllCategory();
}
}