Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
* @
* @ 수정일 수정자 수정내용
* @ --------- --------- -------------------------------
* @ 2009.03.16 최초생성
* @ 2009.03.16 최초생성
* 2026.07.16 이백행 [2026년 컨트리뷰션] 불필요한 예외 제거
*
* @author 개발프레임웍크 실행환경 개발팀
* @since 2009. 03.16
Expand All @@ -47,17 +48,15 @@ public interface EgovSampleService {
* 글을 수정한다.
* @param vo - 수정할 정보가 담긴 SampleVO
* @return void형
* @exception Exception
*/
void updateSample(SampleVO vo) throws Exception;
*/
void updateSample(SampleVO vo);

/**
* 글을 삭제한다.
* @param vo - 삭제할 정보가 담긴 SampleVO
* @return void형
* @exception Exception
*/
void deleteSample(SampleVO vo) throws Exception;
*/
void deleteSample(SampleVO vo);

/**
* 글을 조회한다.
Expand All @@ -71,9 +70,8 @@ public interface EgovSampleService {
* 글 목록을 조회한다.
* @param searchVO - 조회할 정보가 담긴 VO
* @return 글 목록
* @exception Exception
*/
List<?> selectSampleList(SampleVO vo) throws Exception;
*/
List<?> selectSampleList(SampleVO vo);

/**
* 글 총 갯수를 조회한다.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@
* @
* @ 수정일 수정자 수정내용
* @ --------- --------- -------------------------------
* @ 2009.03.16 최초생성
* @ 2026.06.19 [2026년 컨트리뷰션] 문자열 기반 설정 제거
* @ 2026.06.25 [2026년 컨트리뷰션] 생성자 주입으로 변경
* @ 2026.07.04 정찬영 [2026년 컨트리뷰션] 미사용 import 제거 및 @Slf4j로 로거 선언 통일
* @ 2009.03.16 최초생성
* @ 2026.06.19 [2026년 컨트리뷰션] 문자열 기반 설정 제거
* @ 2026.06.25 [2026년 컨트리뷰션] 생성자 주입으로 변경
* @ 2026.07.04 정찬영 [2026년 컨트리뷰션] 미사용 import 제거 및 @Slf4j로 로거 선언 통일
* 2026.07.16 이백행 [2026년 컨트리뷰션] 불필요한 예외 제거
*
* @author 개발프레임웍크 실행환경 개발팀
* @since 2009. 03.16
Expand Down Expand Up @@ -77,21 +78,19 @@ public void insertSample(SampleVO vo) throws Exception {
* 글을 수정한다.
* @param vo - 수정할 정보가 담긴 SampleVO
* @return void형
* @exception Exception
*/
@Override
public void updateSample(SampleVO vo) throws Exception {
*/
@Override
public void updateSample(SampleVO vo) {
sampleMapper.updateSample(vo);
}

/**
* 글을 삭제한다.
* @param vo - 삭제할 정보가 담긴 SampleVO
* @return void형
* @exception Exception
*/
@Override
public void deleteSample(SampleVO vo) throws Exception {
*/
@Override
public void deleteSample(SampleVO vo) {
sampleMapper.deleteSample(vo);
}

Expand All @@ -113,10 +112,9 @@ public SampleVO selectSample(SampleVO vo) throws Exception {
* 글 목록을 조회한다.
* @param vo - 조회할 정보가 담긴 VO
* @return 글 목록
* @exception Exception
*/
@Override
public List<?> selectSampleList(SampleVO vo) throws Exception {
*/
@Override
public List<?> selectSampleList(SampleVO vo) {
return sampleMapper.selectSampleList(vo);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@
*
* 수정일 수정자 수정내용
* ---------------- ------------ ---------------------------
* 2014.01.24 표준프레임워크센터 최초 생성
* 2026.06.19 이백행 [2026년 컨트리뷰션] 문자열 기반 설정 제거
* 2014.01.24 표준프레임워크센터 최초 생성
* 2026.06.19 이백행 [2026년 컨트리뷰션] 문자열 기반 설정 제거
* 2026.07.16 이백행 [2026년 컨트리뷰션] 불필요한 예외 제거
*
* </pre>
*/
Expand All @@ -44,41 +45,36 @@ public interface SampleMapper {
* 글을 등록한다.
* @param vo - 등록할 정보가 담긴 SampleVO
* @return 등록 결과
* @exception Exception
*/
void insertSample(SampleVO vo) throws Exception;
*/
void insertSample(SampleVO vo);

/**
* 글을 수정한다.
* @param vo - 수정할 정보가 담긴 SampleVO
* @return void형
* @exception Exception
*/
void updateSample(SampleVO vo) throws Exception;
*/
void updateSample(SampleVO vo);

/**
* 글을 삭제한다.
* @param vo - 삭제할 정보가 담긴 SampleVO
* @return void형
* @exception Exception
*/
void deleteSample(SampleVO vo) throws Exception;
*/
void deleteSample(SampleVO vo);

/**
* 글을 조회한다.
* @param vo - 조회할 정보가 담긴 SampleVO
* @return 조회한 글
* @exception Exception
*/
SampleVO selectSample(SampleVO vo) throws Exception;
*/
SampleVO selectSample(SampleVO vo);

/**
* 글 목록을 조회한다.
* @param vo - 조회할 정보가 담긴 VO
* @return 글 목록
* @exception Exception
*/
List<?> selectSampleList(SampleVO vo) throws Exception;
*/
List<?> selectSampleList(SampleVO vo);

/**
* 글 총 갯수를 조회한다.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@
* @
* @ 수정일 수정자 수정내용
* @ --------- --------- -------------------------------
* @ 2009.03.16 최초생성
* @ 2026.07.01 [2026년 컨트리뷰션] 불필요한 import 및 ModelAttribute name 속성 제거
* @ 2009.03.16 최초생성
* @ 2026.07.01 이백행 [2026년 컨트리뷰션] 불필요한 import 및 ModelAttribute name 속성 제거
* 2026.07.16 이백행 [2026년 컨트리뷰션] 불필요한 예외 제거
*
* @author 개발프레임웍크 실행환경 개발팀
* @since 2009. 03.16
Expand All @@ -65,7 +66,7 @@ public class EgovSampleController {
private final EgovPropertyService propertiesService;

@GetMapping("/")
public String index(@ModelAttribute SampleVO sampleVO, ModelMap model) throws Exception {
public String index(@ModelAttribute SampleVO sampleVO, ModelMap model) {
return this.selectSampleList(sampleVO, model);
}

Expand All @@ -74,10 +75,9 @@ public String index(@ModelAttribute SampleVO sampleVO, ModelMap model) throws Ex
* @param sampleVO - 조회할 정보가 담긴 SampleDefaultVO
* @param model
* @return "egovSampleList"
* @exception Exception
*/
@GetMapping("/egovSampleList.do")
public String selectSampleList(@ModelAttribute SampleVO sampleVO, ModelMap model) throws Exception {
*/
@GetMapping("/egovSampleList.do")
public String selectSampleList(@ModelAttribute SampleVO sampleVO, ModelMap model) {

/** EgovPropertyService.sample */
sampleVO.setPageUnit(propertiesService.getInt("pageUnit"));
Expand Down Expand Up @@ -112,10 +112,9 @@ public String selectSampleList(@ModelAttribute SampleVO sampleVO, ModelMap model
* @param sampleVO - 목록 조회조건 정보가 담긴 VO
* @param model
* @return "egovSampleRegister"
* @exception Exception
*/
@PostMapping("/addSampleView.do")
public String addSampleView( @ModelAttribute SampleVO sampleVO, Model model) throws Exception {
*/
@PostMapping("/addSampleView.do")
public String addSampleView( @ModelAttribute SampleVO sampleVO, Model model) {

model.addAttribute("sampleVO", sampleVO);

Expand Down Expand Up @@ -168,11 +167,10 @@ public String updateSampleView(@ModelAttribute SampleVO sampleVO, Model model) t
* @param sampleVO - 수정할 정보가 담긴 VO
* @param status
* @return "forward:/egovSampleList.do"
* @exception Exception
*/
@PostMapping("/updateSample.do")
public String updateSample(@Valid @ModelAttribute SampleVO sampleVO, BindingResult bindingResult,
Model model, RedirectAttributes redirectAttributes, SessionStatus status) throws Exception {
*/
@PostMapping("/updateSample.do")
public String updateSample(@Valid @ModelAttribute SampleVO sampleVO, BindingResult bindingResult,
Model model, RedirectAttributes redirectAttributes, SessionStatus status) {

if (bindingResult.hasErrors()) {
model.addAttribute("sampleVO", sampleVO);
Expand All @@ -194,10 +192,9 @@ public String updateSample(@Valid @ModelAttribute SampleVO sampleVO, BindingResu
* @param sampleVO - 삭제할 정보가 담긴 VO
* @param status
* @return "forward:/egovSampleList.do"
* @exception Exception
*/
@PostMapping("/deleteSample.do")
public String deleteSample(@ModelAttribute SampleVO sampleVO, RedirectAttributes redirectAttributes, SessionStatus status) throws Exception {
*/
@PostMapping("/deleteSample.do")
public String deleteSample(@ModelAttribute SampleVO sampleVO, RedirectAttributes redirectAttributes, SessionStatus status) {

sampleService.deleteSample(sampleVO);
status.setComplete();
Expand Down