Programming21 [petclinic] PSA PSA: portable service abstraction 우리가 보고있는 코드에 보다시피 우리는 서블릿 애플리케이션을 만들고 있음에도 불구하고 서블릿을 전혀 쓰고있지 않다. -> OwnerCreateServlet 등을 만들어서 public class OwnerCreateServlet extends HttpServlet{ @Override protected void doGet(HttpServletRequest rep, HttpServletResponse resp) throws{ super.doGet(req,resp); } @Override protected void doPost(HttpServletRequest rep, HttpServletResponse resp) throws{ super.doPost.. 2020. 11. 28. [petclinic] AOP 소개 스프링은 크게 IOC AOP PSA, 이 3가지 개념을 제공해주는 스프링 트라이앵글이라는 개념이 있다. AOP 는 aspect oriant program ex) class A{ method a () { AAAA 오늘은 7월4일 미국 독립 기념일 BBBB } class B{ method b () { AAAA 오늘은 아침운동 BBBB } 이렇게 똑같은 코든데 흩어진거의 문제는 뭔가 바꿔야할 때 다 찾아가서 바꿔야한다. 공통적인 코드를 모아놓자! class AAAABBB{ method aaaabbb(JoinPoint point){ AAAA point.execute() BBB } } 이런게 AOP petclinic에서는 @Transactional(readOnly = true), 이게 스프링AOP 기반으로 만들어.. 2020. 11. 28. [petclinic] maven surfire 오류 해결 방법 petclinic에서 ./mvnw package 실행시 surfire에서 오류가 뜰 때, [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.226 s [INFO] Finished at: 2019-07-12T09:29:41+09:00 [INFO] ------------------------------------------------------------------------ [ERROR] Faile.. 2020. 11. 22. python 알고리즘 코딩 꿀팁 1. input() 말고 sys.stdin.readline() 를 사용하자. 결론만 말하자면, 입출력 속도가 다음과 같다. sys.stdin.readline() > raw_input() > input() 뭐 어느정도로 더 빠르고 느리냐는, 코딩 테스트 문제푸는 수준에서 다룰만한 내용이 아니므로 넘어가도록 하고, 직관적으로만 느꼈던 것은, input() 으로 코드를 제출할 시, 시간초과가 뜨지만, sys.stdin.readline() 으로 제출할 시 정답이 뜨더라는 것이다. 이와 비슷한 이슈는 이미 이전부터 있었다. 참고 링크 : https://www.acmicpc.net/board/view/19327 한편, 나는 입출력을 지금까지 이런 방식으로 했다. a = [int(x) for x in input()... 2020. 11. 7. 이전 1 2 3 4 5 6 다음