0

我的 H2 Web 界面无法访问。虽然 Java 代码可以获取数据,但 Web 界面无法连接到它。这在我重新启动系统后开始发生。

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Tue May 02 21:34:04 PDT 2017
There was an unexpected error (type=Not Found, status=404).
No message available

Gradle 文件:build.gradle:-

buildscript {
        ext {
            springBootVersion = '1.4.4.RELEASE'
        }
        repositories {
            mavenCentral()
        }
        dependencies {
            classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
        }
    }

    apply plugin: 'java'
    apply plugin: 'eclipse'
    apply plugin: 'org.springframework.boot'

    jar {
        baseName = 'cg'
        version = '0.0.1-SNAPSHOT'

    }

    sourceCompatibility = 1.8

    repositories {
        mavenCentral()
    }


    dependencies {
        compile('org.springframework.boot:spring-boot-starter-jdbc')
        compile ("commons-dbcp:commons-dbcp")   
        compile('org.springframework.boot:spring-boot-starter-security')
        compile('org.springframework.boot:spring-boot-starter-web')
        runtime('org.springframework.boot:spring-boot-devtools')
        runtime('com.h2database:h2')
        testCompile('org.springframework.boot:spring-boot-starter-test')
    }
4

0 回答 0