Skip to content
Back to skills

Spring Boot Data Access

ASecurity

Spring Boot uses HikariCP by default in the usual JDBC setup. Configure an explicit pool limit and timeouts in `application.yaml`, for example: ```yaml spring: datasource: url: ${DB_URL} username: ${DB_USERNAME} password: ${DB_PASSWORD} hikari: maximum-pool-size: 20 minimum-idle: 5 connection-timeout: 30000 max-lifetime: 1800000 pool-name: app-pool ``` Choose `maximum-pool-size` from measured database capacity and expected concurrent queries, not from the number of application threads or pods...

  • 584 stars
  • 0 votes
  • 1 copy
  • 11 views
  • Added September 5, 2026
developmentspringdatabase

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill spring-boot-data-access --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spring Boot Data Access?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spring Boot Data Access
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-spring-boot-data-access-0170469c/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-spring-boot-data-access-0170469c)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Spring Boot uses HikariCP by default in the usual JDBC setup. Configure an explicit pool limit and timeouts in `application.yaml`, for example:

```yaml
spring:
  datasource:
    url: ${DB_URL}
    username: ${DB_USERNAME}
    password: ${DB_PASSWORD}
    hikari:
      maximum-pool-size: 20
      minimum-idle: 5
      connection-timeout: 30000
      max-lifetime: 1800000
      pool-name: app-pool
```

Choose `maximum-pool-size` from measured database capacity and expected concurrent queries, not from the number of application threads or pods. Multiply the per-instance pool by the maximum replica count and leave headroom for administration and other services. Tune after observing acquisition latency, active/idle connections, query time, and database saturation.

Keep service reads in `@Transactional(readOnly = true)`, paginate with `Pageable`/`Slice`/`Page`, and avoid holding connections across remote calls. Set `spring.jpa.open-in-view=false` so web rendering cannot unexpectedly keep a transaction/connection open. Use projections when entities are unnecessary and fix N+1 with `JOIN FETCH` or `@EntityGraph`. Store credentials in environment variables or a secret manager, not in committed configuration.


Files in this skill

  • eval-1.baseline.md799 B
  • eval-1.with-skill.md1.2 KB
  • eval-2.baseline.md727 B
  • eval-2.with-skill.md1.1 KB
  • eval-3.baseline.md686 B
  • eval-3.with-skill.md1.2 KB
  • trigger-1.md127 B
  • trigger-2.md107 B
  • trigger-3.md101 B
  • trigger-4.md118 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.