电商公司名称怎么起名,简述什么是seo及seo的作用,优化 seo,中交建设 招标有限公司网站maven打jar包错误
引起错误的原因是在 SpringbootStudyApplication 类中#xff0c;加入了下面注释中的代码#xff08;监听项目启动#xff0c;然后打开浏览器#xff09;#xff0c;单纯删掉注释代码是无法解决问题的#xff0c;可能的原因是由于加入这部分代码而impo…maven打jar包错误
引起错误的原因是在 SpringbootStudyApplication 类中加入了下面注释中的代码监听项目启动然后打开浏览器单纯删掉注释代码是无法解决问题的可能的原因是由于加入这部分代码而import的一些包有冲突吧具体没搞清楚重新建项目不做这个工作就可以打包了
package com.ex.springbootstudy;import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.EventListener;import java.io.IOException;SpringBootApplication
public class SpringbootStudyApplication {public static void main(String[] args) {SpringApplication.run(SpringbootStudyApplication.class, args);}// Value(${server.port})
// private String appport; //站点端口号
//
// /*当端口启动后直接跳转界面*/
// EventListener({ApplicationReadyEvent.class})
// void applicationReadyEvent() {
// System.out.println(应用已经准备就绪 ... 启动浏览器);
// String url http://localhost: appport;
// Runtime runtime Runtime.getRuntime();
// try {
// runtime.exec(rundll32 url.dll,FileProtocolHandler url);
// } catch (IOException e) {
// e.printStackTrace();
// }
// }
}