显示启动成功了,这个项目本身没有页面
阿里云镜像:
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
那你上外网挺快的,还要啥阿里云镜像
已 知
可以哎 就是麻烦点 去搜下idea安装tomcat插件 就能继承tomcat插件
上B站
认证
在settings.xml配置
<server>
<id>nexus-releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>nexus-snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
配置镜像
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<name>all maven</name>
<url>http://localhost:8081/repository/maven-public/</url>
</mirror>
配置仓库和插件仓库,开启快照版本支持。其中id均为central,会覆盖超级pom中央仓库的配置,与url无关紧要,所以url随意。因为所有的请求都会通过镜像访问私服地址。
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
激活profile
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
配置项目pom,上传到快照宿主仓库中。
<distributionManagement>
<repository>
<id>nexus-snapshots</id>
<name>nexus snapshots repository</name>
<url>http://localhost:8080/repository/maven-snapshots/</url>
</repository>
</distributionManagement>
上傳項目jia包
run as
——maven bulid
Goals:deploy
最新版本就好了
不要依赖 spring-boot-starter-web
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
<version>2.0.0.RELEASE</version>
</dependency>
可以参考这个 https://segmentfault.com/n/1330000010143779