加了CommandLineRunner之后页面打开后js和css都报404了,请教下原因指改动了两个地方
1.在启动类上加了注解@EnableWebMvc2.增加了如下类
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
/**
 * 配置自动启动浏览器
 */@Component
public class MyCommandRunner implements CommandLineRunner {    @Value("${server.port}")
    private String port;    @Override
    public void run(String... args) {
        try {
            Runtime.getRuntime().exec("cmd   /c   start   http://localhost:" + port + "/gxs");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}