스프링에서
FATAL: remaining connection slots are reserved for non-replication superuser connections
해당 문구를 발견했다.
db에 connection할 수 있는 수가 모자라다는 것이다
postgresql의 conf파일을 찾아서 max_connection을 늘려주고 재시작하거나,
그냥 재시작해도 아마 동작할 것이다.
본인은 로컬환경이 아니라, /etc/init.d의 postgresql을 재시작해주어 해결했다.