Не поднимается микросервис

Решил повторить полностью телеграмм бота из этого видеоролика, но уже на 3 минуте столкнулся с ошибкой. Я запускаю основной класс, но микросервис не поднимется, хотя я повторял в точности за автором.

2024-04-29T23:58:53.685+03:00 INFO 18528 --- [ main] ru.fisher.DispetcherApplication : Starting DispetcherApplication using Java 21.0.3 with PID 18528 (C:\Users\misha\IdeaProjects\bot\dispatcher\target\classes started by misha in C:\Users\misha\IdeaProjects\bot)

2024-04-29T23:58:53.688+03:00 INFO 18528 --- [ main] ru.fisher.DispetcherApplication : No active profile set, falling back to 1 default profile: "default"

2024-04-29T23:58:54.579+03:00 INFO 18528 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)

2024-04-29T23:58:54.591+03:00 INFO 18528 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]

2024-04-29T23:58:54.591+03:00 INFO 18528 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.20]

2024-04-29T23:58:54.701+03:00 INFO 18528 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext

2024-04-29T23:58:54.701+03:00 INFO 18528 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 956 ms

2024-04-29T23:58:55.024+03:00 WARN 18528 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'

2024-04-29T23:58:55.038+03:00 INFO 18528 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger : Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.

2024-04-29T23:58:55.054+03:00 ERROR 18528 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :

*************************** APPLICATION FAILED TO START ***************************`

Вот что было написано xlm файле основного проекта:

  <?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>ru.fisher</groupId>
    <artifactId>bot</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>pom</packaging>
    <modules>
        <module>dispatcher</module>
    </modules>

    <properties>
        <maven.compiler.source>21</maven.compiler.source>
        <maven.compiler.target>21</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.2.5</version>
</parent>

</project>

Вот xlm файл микросервиса:

  <?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>
    <parent>
        <groupId>ru.fisher</groupId>
        <artifactId>bot</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>

    <artifactId>dispatcher</artifactId>

    <properties>
        <maven.compiler.source>21</maven.compiler.source>
        <maven.compiler.target>21</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <telegrambot.starter.version>5.0.1</telegrambot.starter.version>
    </properties>
<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
        <groupId>org.telegram</groupId>
        <artifactId>telegrambots-spring-boot-starter</artifactId>
        <version>${telegrambot.starter.version}</version>
    </dependency>
</dependencies>
</project>

Код основного класса:

package ru.fisher;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DispetcherApplication {
    public static void main(String[] args) {
        SpringApplication.run(DispetcherApplication.class);

    }
}

Ответы (0 шт):