Naravno, moze i tako - no spring boot @EnableAutoConfiguration moze mnogo toga da zakljuci sam skenirajuci classpath i gledajuci sta si konfigurisao.
Ako ti jos treba REST, pogledaj spring data rest projekat i ovaj sample:
spring data rest
Ako u pom.xml-u umesto h2 stavis postgre dependency, i u application.properties konfigurises sta treba, boot ce ti exposovati data source bean automatski.
"The most likely way for the world to be destroyed, most experts agree, is by
accident. That's where we come in; we're computer professionals. We cause
accidents." - Nathaniel Borenstein