有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Spring boot招摇过市404

我正在使用SpringBoot和swagger将一个旧的Java6SOAP项目转换为Java8。我过去可以在自动连接服务之前使用swagger,但现在我在浏览器中看到一个白色页面,错误很快出现在chrome的控制台上

errors

波姆。xml

<dependency>
        <groupId>io.springfox</groupId>
        <artifactId>springfox-swagger2</artifactId>
        <version>2.8.0</version>
    </dependency>
    <dependency>
        <groupId>io.springfox</groupId>
        <artifactId>springfox-swagger-ui</artifactId>
        <version>2.8.0</version>
    </dependency>

应用程序。亚马尔

server:
port: 30001

url中有localhost/null/swagger,因此我假设问题在某个地方,我将上下文更改为test,然后错误是localhost/test/null/swagger

@SpringBootApplication(scanBasePackages = {
        "com.company.location.myprogram"
})
public class WebserviceApplication {

共 (0) 个答案