일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 이클립스
- spring
- 웹개발
- icon
- CSS
- 티스토리챌린지
- github
- myBatis
- bootstrap
- SQLD
- 깃허브
- 자바
- java
- 스파르타코딩클럽
- Eclipse
- 기업설명회
- AJAX
- error
- jQuery
- 오블완
- 코딩
- 오류
- HTML
- Firebase
- JavaScript
- firestore
- vscode
- SQL
- chart.js
- restapi
- Today
- Total
목록구디아카데미 (82)
푸들푸들
InterceptorOnInterceptor.java@Slf4j@Component // new OnInterceptor -> bean으로 등록해줌public class OnInterceptor implements HandlerInterceptor{ // 특정 컨트롤러 실행전에 request, response를 가채로어 먼저 실행됨 @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { log.debug(request.getRequestURL().toString() +"요청 Interceptor"); // ..
https://github.com/ GitHub · Build and ship software on a single, collaborative platformJoin the world's most widely adopted, AI-powered developer platform where millions of developers, businesses, and the largest open source community build software that advances humanity.github.com Token 발급Settings > Developer > Personal access tokens > tokens Spring Commit & Push 프로젝트 우클릭 > Team > Share P..
package com.example.demo;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.GetMapping;@Controllerpublic class HelloController { @GetMapping("/hello") public String hello() { return "a"; }}∆ ∇ 같은 의미@WebServlet("/hello")public class FrontServlet extends HttpServlet{ void doget(request,response) { String s = this.hello(reqeust,response); RequestDisp..
동적 language- type이 정해지지 X- Gradle/Maven/자바스크립트-JSON - Gradle -- xml /Groovy / Kotlin - Groovy > Maven.. : 프로젝트마다 개별 tomcat, tomcat 설정할 필요XX정적 language- JAVA Group id + Artifact + Package => 3단 구성* Developer Tools: 개발하기 편하게 해줌 - Lombok: getter,setter 따로 만들 필요 없게 해줌 -> 프로젝트도 따로 설정해야함 - Spring - DI: new 연산자 XX - AOP: Transaction, 다른 매소드가 할일 가로챔* SQL - JDBC API : 기본 API - Sp..
2024/10/24p1게시글 수정 시 내용을 입력하지 않았을 때에러메세지를 표시되게 설정했는데404 오류가 뜸 UpdateArticleServlet.javapackage controller;@WebServlet("/board/updateArticle")public class UpdateArticleServlet extends HttpServlet{ // -> V: /board/updateArticle.jsp @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // 폼 HttpSession session = request.get..
2024/10/23p1댓글 삭제BoardCommentDao.javapublic class BoardCommentDao { public int deleteComment(Connection conn, int commentNo,int articleNo) throws Exception { int row=0; String sql = "delete from board_comment where comment_no=? and article_no=?"; PreparedStatement stmt = conn.prepareStatement(sql); stmt.setInt(1, commentNo); stmt.setInt(2, articleNo); row = stmt.executeUpdate(); return ro..
2024/10/23p1댓글 입력 BoardCommentDao.javapublic int insertComment(Connection conn, BoardComment bc) throws Exception { int row=0; String sql = """ insert into board_comment( article_no articleNo , member_id memberId , comment , createdate ) values (?,?,?,now()) """; PreparedStatement stmt = conn.pr..