IT'S DO
springboot 튜닝 application.yml hikari
개발/Spring Boot 2022. 7. 29. 14:13

Spring Boot 를 사용하면, Gradle or Maven에 별도로 설정할 필요는 없다. spring-boot-starter-data-jpa 에 dependency에 걸려 Default로 hikariCP가 설정된다. type: com.zaxxer.hikari.HikariDataSource hikari: poolName: Hikari maximum-pool-size: 10 max-lifetime: 1800000 auto-commit: false data-source-properties: cachePrepStmts: true prepStmtCacheSize: 250 prepStmtCacheSqlLimit: 2048 useServerPrepStmts: true application.yml에서 hikari..

Thymeleaf 비교 연산, 리터럴 정보 좋은 사이트
개발/Spring Boot 2022. 7. 28. 18:55

https://bulnabang99.tistory.com/59

Thymeleaf controller에서 값 받아오기 및 th:each 등 사용법 값 받기 값 담아오기
개발/Spring Boot 2022. 7. 28. 18:54

각 부분에 값 가져오기 message.fileList[0].storedFilePath 'images/20220728/1365666336304400.png' controller에서 배열로 보냄 @RequestMapping(value="/jpa/board", method=RequestMethod.GET) public ModelAndView openBoardList() throws Exception { ModelAndView mv = new ModelAndView("thymeleaf/board/jpaBoardList"); List list = jpaBoardService.selectBoardList(); mv.addObject("list", list); return mv; } 배열로 보냈으니 배열로 받아야함...

thymeleaf에서 th if 사용법 else 그리고 null
개발/Spring Boot 2022. 7. 27. 11:21

if 부분 else 부분 도 가능 ㅎㅎ idx가 gg면 아래 ㅎㅎ 구문 가져오지마라는 뜻 정보를 준 사이트 https://webfirewood.tistory.com/94 thymeleaf에서 null check 하기(isEmpty) 오늘의 미션, 만약 view 단에서 보여줘야 하는 데이터가 없으면(아마도 DB에서 삭제된 경우) 프론트단에 데이터를 보여주는 div 태그를 없애야 한다. 아 그야 식은 죽 먹기죠. data가 null인지 아닌지 webfirewood.tistory.com