13 |
Hello! ${name}
14 |
JSP version
15 |
16 |
17 |
18 | 환영합니다! ${_USER.displayName}
19 | Spring Blog 라이브 데모 들어가기
20 |
21 |
22 |
23 |
24 | SpringBlog from Millky
25 |
26 | 밀키(millky.com)에서 블로그 부분을 뽑아(?) 오픈소스 합니다. http://millky.com/@origoni
27 | 단지 코드만 공개한는 것이 아니라. 개발 과정을 같이 공개하려 합니다. 문의사항은 밀키, 페이스북, 깃헙 등 모두 열려 있습니다 ^^;
28 |
29 |
30 | 관련 링크
31 |
36 |
37 | Project Convention
38 |
39 | Package Structure
40 | com.millky.blog
41 | └── application
42 | └── configuration
43 | └── utility
44 | └── domain
45 | └── model
46 | └── command
47 | └── entity
48 | └── exception
49 | └── repository
50 | └── service
51 | └── infrastructure
52 | └── dao
53 | └── presentation
54 | └── controller
55 | └── rest
56 | └── support
57 | └── result
58 |
59 | 프로젝트 설정
60 |
61 |
62 | STS 설치 -> http://millky.com/@origoni/post/1100
63 | Lombok 설치 -> https://projectlombok.org/
64 | (STS에 설치 : http://millky.com/@origoni/post/1164 )
65 |
66 | GitHub 에서 다운 -> http://millky.com/@origoni/post/1145
67 | (OSX : http://millky.com/@origoni/post/1140 )
68 |
69 |
70 |
71 |
72 |
fmt:message Test :
73 |
74 |
75 | <%@ include file="/WEB-INF/jspf/footer.jspf"%>
76 |
77 |
78 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jsp/post/form.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
3 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
4 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
5 |
6 |
7 |
8 |
74 | <%----%>
75 |
76 |
77 |
78 |
82 |
83 |
84 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
99 |
100 |
101 |
102 |
109 |
110 | 저장
111 |
112 |
113 |
114 |
115 |
116 | 돌아가기
117 |
118 |
119 |
124 |
125 |
126 | Powered By Millky | WYSIWYG Editor by Pen Editor
127 |
128 |
129 |
130 |
131 |
132 |
176 |
177 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jsp/post/list.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
3 |
4 |
5 |
6 | <%@ include file="/WEB-INF/jspf/head.jspf" %>
7 | Hello Spring Blog
8 |
9 |
10 | <%@ include file="/WEB-INF/jspf/nav.jspf" %>
11 |
12 |
25 |
26 |
27 |
28 |
29 |
30 | (으)로 검색된
31 |
32 |
33 | 카테고리에
34 |
35 |
36 | 태그에
37 |
38 |
39 | 총 ${postPage.totalElements} 개의 글이 있습니다.
40 |
41 |
42 | 글이 없습니다.
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
Posted by ${post.name} in on ${post.regDate}
55 |
56 |
57 |
58 |
59 |
81 |
82 |
83 |
84 |
99 |
100 |
101 |
102 |
103 |
104 | <%@ include file="/WEB-INF/jspf/footer.jspf" %>
105 |
106 |
107 |
108 |
109 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jsp/post/post.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
3 | <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
4 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
5 |
6 |
7 |
8 | <%@ include file="/WEB-INF/jspf/head.jspf" %>
9 | : Spring Blog
10 |
11 |
12 | <%@ include file="/WEB-INF/jspf/nav.jspf" %>
13 |
14 |
27 |
28 |
29 |
30 |
31 |
32 | ${post.content}
33 |
34 |
35 |
36 |
37 |
38 | /post/list">
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 | <%@ include file="/WEB-INF/jspf/footer.jspf" %>
84 |
85 |
97 |
98 |
186 |
187 |
188 |
189 |
190 |
191 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jsp/post/rss.jsp:
--------------------------------------------------------------------------------
1 |
2 | <%@ page contentType="text/xml;charset=UTF-8" pageEncoding="UTF-8"%>
3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
4 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
5 |
6 |
7 |
8 | http://blog.millky.com/post/list
9 |
10 | ko-kr
11 | https://github.com/origoni/Spring-Blog
12 |
13 | -
14 |
]]>
15 | http://blog.millky.com/post/${post.id}
16 |
17 | ]]>
18 |
19 |
20 | ]]>
21 | ]]>
22 | http://blog.millky.com/post/${post.id}
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jspf/footer.jspf:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 |
40 |
41 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
96 |
97 |
107 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jspf/head.jspf:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jspf/nav.jspf:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
3 |
4 |
5 |
6 |
7 |
58 |
--------------------------------------------------------------------------------
/src/test/java/com/millky/blog/SpringBlogApplicationTests.java:
--------------------------------------------------------------------------------
1 | //package com.millky.blog;
2 | //
3 | //import org.junit.Test;
4 | //import org.junit.runner.RunWith;
5 | //import org.springframework.test.context.web.WebAppConfiguration;
6 | //import org.springframework.boot.test.SpringApplicationConfiguration;
7 | //import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
8 | //
9 | //@RunWith(SpringJUnit4ClassRunner.class)
10 | //@SpringApplicationConfiguration(classes = SpringBlogApplication.class)
11 | //@WebAppConfiguration
12 | //public class SpringBlogApplicationTests {
13 | //
14 | // @Test
15 | // public void contextLoads() {
16 | // }
17 | //
18 | //}
19 |
--------------------------------------------------------------------------------