Minha aplicação não carrega, dentre várias linhas de código há as seguintes causas:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactory' defined in class br.com.casadocodigo.loja.conf.JPAConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [javax.sql.DataSource]: : Error creating bean with name 'dataSource' defined in class br.com.casadocodigo.loja.conf.JPAProductionConfiguration: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource br.com.casadocodigo.loja.conf.JPAProductionConfiguration.dataSource() throws java.net.URISyntaxException] threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [com.postgresql.Driver]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class br.com.casadocodigo.loja.conf.JPAProductionConfiguration: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource br.com.casadocodigo.loja.conf.JPAProductionConfiguration.dataSource() throws java.net.URISyntaxException] threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [com.postgresql.Driver]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class br.com.casadocodigo.loja.conf.JPAProductionConfiguration: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource br.com.casadocodigo.loja.conf.JPAProductionConfiguration.dataSource() throws java.net.URISyntaxException] threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [com.postgresql.Driver]
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource br.com.casadocodigo.loja.conf.JPAProductionConfiguration.dataSource() throws java.net.URISyntaxException] threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [com.postgresql.Driver]
Caused by: java.lang.ClassNotFoundException: com.postgresql.Driver
2019-11-05T14:53:40.74795+00:00 app[web.1]: at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
Caused by: java.lang.IllegalStateException: Could not load JDBC driver class [com.postgresql.Driver]