Skip to content
Merged
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
28 changes: 26 additions & 2 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
Expand All @@ -26,7 +34,23 @@
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="target/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
Expand Down
35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/amendment_request.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 오류 내용을 이슈로 등록하는 템플릿입니다. Templat
title: "[Bug]: "
labels: ["bug", "triage"]
assignees:
- yongfire38
- rukegithub
body:
- type: markdown
attributes:
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: 기능 요구 및 의견 Feature Request
description: 기능 요구나 기타 의견을 이슈로 등록하는 템플릿입니다. Suggest an idea for improving eGovFrame.
name: 기능 요구 Feature Request
description: 기능 요구를 이슈로 등록하는 템플릿입니다. Suggest a new feature for improving eGovFrame.
title: "[기능요구(Feature)]: "
labels: ["feature"]
assignees:
- yongfire38
- rukegithub
body:
- type: markdown
attributes:
Expand Down
55 changes: 55 additions & 0 deletions .github/ISSUE_TEMPLATE/improvement_plan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: 발전 방안 제안 Improvement Plan
description: 발전 방안을 이슈로 등록하는 템플릿입니다. Suggest a new plan for improving eGovFrame.
title: "[발전 방안 제안(Improvement Plan)]: "
labels: ["Improvement"]
assignees:
- yongfire38
body:
- type: markdown
attributes:
value: |
시간을 내어 의견을 작성해 주셔서 감사합니다. Thank you for taking the time to fill out a request.
- type: input
id: idea-name
attributes:
label: 아이디어명 Idea Name
validations:
required: true
- type: textarea
id: idea-summary
attributes:
label: 아이디어 요약 Idea Summary
description: 과제 내용을 300자 이내로 간결하게 요약 및 정의해 주세요 Please summarize and define your content in 300 characters or less
placeholder: 예) 게시판 첨부기능 추가 Example) Adding a bulletin board attachment
validations:
required: true
- type: textarea
id: suggestion-background
attributes:
label: 제안배경 Suggestion Background
description: 아이디어를 제안하게 된 배경 및 필요성을 기술해 주세요. Please describe the background and need for the idea.
placeholder: 아이디어를 제안하게 된 배경은 다음과 같습니다. The background to suggesting the idea is as follows.
validations:
required: true
- type: textarea
id: expectations
attributes:
label: 기대효과 Expectations
description: 아이디어의 실현 가능성과 예상되는 기대효과를 제시하여 주세요. Please describe the expected impact and outcome of the idea.
placeholder: 해당 아이디어의 기대효과는 다음과 같습니다. Here are the expected effects of this idea.
validations:
required: false
- type: textarea
id: free-writing
attributes:
label: 자유기술 Free Writing
description: 추가 기재하고 싶은 항목 및 내용을 자유롭게 기재하여 주세요. Please feel free to add anything else you'd like to include.
validations:
required: false
- type: textarea
id: reference
attributes:
label: 참고문헌 Reference
description: 참고문헌이 있는 경우 작성하여 주세요. If you have references, please include them.
validations:
required: false
2 changes: 1 addition & 1 deletion Docs/context-hierarchy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

아래 처럼 Servlet Context 가 Root Context를 참조한다고 생각하면 되겠다.

![Context Hierarchy](https://docs.spring.io/spring-framework/docs/current/reference/html/images/mvc-context-hierarchy.png)
![Context Hierarchy](https://docs.spring.io/spring-framework/reference/_images/mvc-context-hierarchy.png)

## Root WebApplicationContext

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ __프로젝트 우클릭 > Run As > Spring Boot App__ 을 통해 구동한다.
### 구동 후 확인

구동 후, 브라우저에서 `http://localhost:포트번호/` 로 확인이 가능하다.
초기 포트번호는 8080이며 `src/main/resources/application.yml` 파일의 port 항목에서 변경 가능하다.
초기 포트번호는 8080이며 `src/main/resources/application.properties` 파일의 `server.port` 항목에서 변경 가능하다.

## 참조 화면

### 목록 화면

![4th_new_web4](https://user-images.githubusercontent.com/3771788/229034000-be8e116b-01ec-4a13-ab17-4c8e85956f8a.jpg)
![4th_new_web4](https://github.com/user-attachments/assets/199c6964-1aa1-42bc-a3d2-0234d037057a)

### 게시글 등록 화면

![4th_new_web5](https://user-images.githubusercontent.com/3771788/229034017-68edf6c3-aeee-441c-bff8-9405626a277c.jpg)
![4th_new_web5](https://github.com/user-attachments/assets/91c1b668-cb59-45ea-8b13-0e3f34ea9078)

## 변경 사항

Expand Down
58 changes: 32 additions & 26 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,44 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>egov</groupId>
<groupId>egovframework</groupId>
<artifactId>boot-example</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<name>boot-example</name>
<name>egovframework</name>
<url>http://www.egovframe.go.kr</url>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.12</version>
<version>2.7.18</version>
</parent>

<properties>
<spring.maven.artifact.version>5.3.27</spring.maven.artifact.version>
<org.egovframe.rte.version>4.2.0</org.egovframe.rte.version>
<spring.maven.artifact.version>5.3.37</spring.maven.artifact.version>
<org.egovframe.rte.version>4.3.0</org.egovframe.rte.version>
<selenium.version>4.13.0</selenium.version>
</properties>

<repositories>
<repository>
<id>mvn2s</id>
<url>https://repo1.maven.org/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<repository>
<id>mvn2s</id>
<url>https://repo1.maven.org/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>egovframe</id>
<url>https://maven.egovframe.go.kr/maven/</url>
<releases>
Expand All @@ -48,7 +49,7 @@
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</repositories>

<dependencies>
<dependency>
Expand Down Expand Up @@ -106,13 +107,13 @@
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.7.2</version>
<version>2.7.3</version>
<classifier>jdk8</classifier>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.28</version>
<version>1.18.34</version>
<optional>true</optional>
</dependency>
<dependency>
Expand All @@ -125,6 +126,12 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -143,5 +150,4 @@
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
package egovframework.example.sample.service.impl;

import egovframework.example.sample.service.EgovSampleService;
import egovframework.example.sample.service.SampleDefaultVO;
import egovframework.example.sample.service.SampleVO;
import java.util.List;

import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import egovframework.example.sample.service.EgovSampleService;
import egovframework.example.sample.service.SampleDefaultVO;
import egovframework.example.sample.service.SampleVO;
import lombok.RequiredArgsConstructor;

@Service("sampleService")
@Service
@RequiredArgsConstructor
public class EgovSampleServiceImpl extends EgovAbstractServiceImpl implements EgovSampleService {

private static final Logger LOGGER = LoggerFactory.getLogger(EgovSampleServiceImpl.class);

/** SampleDAO */
@Resource(name="sampleMapper")
private SampleMapper sampleDAO;
private final SampleMapper sampleDAO;

/** ID Generation */
@Resource(name = "egovIdGnrService")
private EgovIdGnrService egovIdGnrService;
private final EgovIdGnrService egovIdGnrService;

/**
* 글을 등록한다.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*
* </pre>
*/
@Mapper("sampleMapper")
@Mapper
public interface SampleMapper {

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package egovframework.example.sample.web;

import egovframework.example.sample.service.EgovSampleService;
import egovframework.example.sample.service.SampleVO;
import javax.validation.Valid;

import org.egovframe.rte.fdl.property.EgovPropertyService;
import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import org.springframework.stereotype.Controller;
Expand All @@ -12,19 +12,19 @@
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;
import javax.validation.Valid;
import egovframework.example.sample.service.EgovSampleService;
import egovframework.example.sample.service.SampleVO;
import lombok.RequiredArgsConstructor;

@Controller
@RequiredArgsConstructor
public class EgovSampleController {

/** EgovSampleService */
@Resource(name = "sampleService")
private EgovSampleService sampleService;
private final EgovSampleService sampleService;

/** EgovPropertyService */
@Resource(name = "propertiesService")
protected EgovPropertyService propertiesService;
private final EgovPropertyService propertiesService;

@GetMapping("/")
public String search(@ModelAttribute SampleVO sampleVO, Model model) throws Exception {
Expand Down
Loading