티스토리 뷰

프로그래밍/Web

게시판 만들기

국윤창 2018. 2. 18. 04:51

Spring boot와 MySQL을 이용해 게시판을 제작했다. Mybatis, JDBC를 이용해 Google Cloud Platform에 올려둔 MySQL을 이용했다.


* 참고 (예제들)

http://huskdoll.tistory.com/792


http://forest71.tistory.com/2?category=537814


http://addio3305.tistory.com/72


A 컨트롤러에서 받은 객체 사용한 뒤 B로 넘길 때 멤버 처리

https://stackoverflow.com/questions/25027801/how-to-set-thymeleaf-thfield-value-from-other-variable

https://stackoverflow.com/questions/13629653/using-put-and-delete-methods-in-spring-mvc


DELETE, PUT 쓸 때 주의사항

https://stackoverflow.com/questions/24256051/delete-or-put-methods-in-thymeleaf


줄바꿈 관련

http://www.popit.kr/thymeleaf-replace-newline-br-tag/


javascript 내에서 thymeleaf 값 사용

https://stackoverflow.com/questions/25687816/setting-up-a-javascript-variable-from-spring-model-by-using-thymeleaf


javascript와 hypertext tag 연동

https://stackoverflow.com/questions/7347786/html-anchor-tag-with-javascript-onclick-event


thymeleaf에서 session 사용

https://stackoverflow.com/questions/20632134/accessing-session-attributes-in-thymeleaf-templates


Spring boot와 thymeleaf로 이미지 업로드하기

http://jinhokwon.tistory.com/11


이미지 업로드 시 경로 문제

상대경로 (리눅스 서비스 실행시 서비스가 경로로 잡히는 현상 발생):

http://trandent.com/board/spring/detail/620

절대경로:

https://stackoverflow.com/questions/35451113/spring-boot-jetty-servlet-context-path


이미지 업로드 시 UUID생성하여 이름으로 했음

UUID 생성:

http://globalhost.interdol.com/368


이미지는 spring boot의 디폴트 static content 경로가 상대경로로 잡힘

static content 경로 관련:

https://stackoverflow.com/questions/45651119/spring-boot-images-uploading-and-serving?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa


업로드한 static content에 접근 시 캐싱에 등록하여 바로 보여주기

https://stackoverflow.com/questions/8553686/non-static-resources-in-spring?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa


에러페이지 처리

https://gs.saro.me/#!m=elec&jn=779


Maven으로 빌드(IntelliJ에서 오류 안남)

http://1004lucifer.blogspot.kr/2016/01/javaspring-boot-unable-to-start.html

Maven으로 빌드 안할 시 오류 발생 (Manifest):

http://1004lucifer.blogspot.kr/2016/01/intellij-jar-xxxjar-manifest.html


빌드 후 리눅스와 통신을 위해 SSH 사용

SSH 원리 및 자세한 내용:

https://opentutorials.org/module/432/3742

winscp로 파일 전송 (putty를 이용한 ssh 키 생성 및 이용):

https://m.blog.naver.com/PostView.nhn?blogId=noljamania&logNo=220730892961&proxyReferer=https%3A%2F%2Fwww.google.co.kr%2F



빌드 후 리눅스에서 jar을 서비스로 등록하는 방법

http://www.jcgonzalez.com/linux-java-service-wrapper-example

putty 여러 프로그램:

https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html


'프로그래밍 > Web' 카테고리의 다른 글

Servlet  (0) 2018.07.11
Web Server와 Web Application Server 차이  (0) 2018.07.11
Spring과 Cookie & Session  (0) 2018.02.05
Mybatis & MySQL  (0) 2018.01.29
DAO, DTO, Service  (4) 2018.01.28
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함