package ip.cl.clipapp;

import java.net.URI;
import java.net.URISyntaxException;

import javax.sql.DataSource;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Profile;

@ComponentScan
@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Profile(ClipAppProfile.HEROKU)
    @Bean
    public DataSource dataSource() throws URISyntaxException {
        URI dbUri = new URI(System.getenv("DATABASE_URL"));

        String username = dbUri.getUserInfo().split(":")[0];
        String password = dbUri.getUserInfo().split(":")[1];
        String dbUrl = "jdbc:postgresql://" + dbUri.getHost() + ':' + dbUri.getPort() + dbUri.getPath();

        return DataSourceBuilder.create()
                        .driverClassName("org.postgresql.Driver")
                        .username(username)
                        .password(password)
                        .url(dbUrl)
                        .build();
    }

}

@@ -156,32 +156,104 @@
 ngApplication;%0D%0A
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;%0D%0A
 import org.sprin
@@ -377,16 +377,94 @@
 ilder;%0D%0A
+import org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration;%0D%0A
 import o
@@ -644,16 +644,89 @@
 ntScan%0D%0A
+@EnableAutoConfiguration(exclude = %7B ErrorMvcAutoConfiguration.class %7D)%0D%0A
 @SpringB

Remove default while label error page