spring项目无法启动
Description:
Web application could not be started as there was no org.springframework.boot.web.reactive.server.ReactiveWebServerFactory bean defined in the context.
Action:
Check your application’s dependencies for a supported reactive web server.
Check the configured web application type.
从头到尾查了一遍。项目也不是很复杂,从依赖,版本,到代码都对比了,没啥差但是就是启动报错
也清理了idea的缓存
查了半天最终放弃
结论
没有找到原因,也没有解决,重新开了一个新项目,就没遇到这个报错了
哎 这个也报错
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.1.1:deploy (default-deploy) on project reactor: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::url parameter -> [Help 1]
=============================== 更新 ==============================
2024年1月23日,上次遇到的奇怪问题已经解决了,主要是错别字
maven的配置很简单文章来源:https://www.toymoban.com/news/detail-808009.html
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>reactor</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.6</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
</dependencies>
</project>
这里的名字错了。。。改成
显然这样起名真心不好
类似这样不带上reactor的会好一些文章来源地址https://www.toymoban.com/news/detail-808009.html
到了这里,关于学习响应式编程中遇到的奇奇怪怪的问题的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!