Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. .jar

Viewed 195

i'm having an issue that i couldn't resolve by my self even i did a lot of research about it. I used all solutions found in similar Stacks Overflow posts but did'nt get any solution. Here is some files in my project spring :

  • the output of my cmd.exe runing the .jar compiled under administrator rights on windows :

    
      .   ____          _            __ _ _
     /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
    ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
     \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
      '  |____| .__|_| |_|_| |_\__, | / / / /
     =========|_|==============|___/=/_/_/_/
     :: Spring Boot ::
    
    17:23:02.527 [main] INFO com.telusholding.chat.admin.api.telusholding_chat_admin_api.TelusholdingChatAdminApiApplication - Starting TelusholdingChatAdminApiApplication using Java 12.0.2 on DESKTOP-H7IUIAE with PID 9396 (C:\Users\YL\Desktop\Project\telusholding_chat_admin_api.jar started by YL in C:\Users\YL\Desktop\Project)
    17:23:02.543 [main] DEBUG com.telusholding.chat.admin.api.telusholding_chat_admin_api.TelusholdingChatAdminApiApplication - Running with Spring Boot, Spring
    17:23:02.543 [main] INFO com.telusholding.chat.admin.api.telusholding_chat_admin_api.TelusholdingChatAdminApiApplication - No active profile set, falling back to default profiles: default
    17:23:02.543 [main] DEBUG org.springframework.boot.SpringApplication - Loading source class com.telusholding.chat.admin.api.telusholding_chat_admin_api.TelusholdingChatAdminApiApplication
    17:23:02.621 [main] DEBUG org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext - Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@143640d5
    17:23:02.652 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'
    17:23:02.746 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/configuration/CorsConfiguration.class]
    17:23:02.746 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/configuration/JwtAuthenticationEntryPoint.class]
    17:23:02.746 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/configuration/JwtRequestFilter.class]
    17:23:02.746 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/configuration/JwtUtil.class]
    17:23:02.761 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/configuration/WebSecurityConfiguration.class]
    17:23:02.777 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/converters/Bcrypter.class]
    17:23:02.808 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Ignored because not a concrete top-level class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/repository/AccountManagersRepository.class]
    17:23:02.808 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Ignored because not a concrete top-level class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/repository/AgentsRepository.class]
    17:23:02.824 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Ignored because not a concrete top-level class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/repository/ChatRepository.class]
    17:23:02.824 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Ignored because not a concrete top-level class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/repository/ContactListRepository.class]
    17:23:02.824 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Ignored because not a concrete top-level class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/repository/CustomersRepository.class]
    17:23:02.824 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Ignored because not a concrete top-level class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/repository/DemandeRepository.class]
    17:23:02.824 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Ignored because not a concrete top-level class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/repository/NotificationsRepository.class]
    17:23:02.824 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/services/authentication/JwtService.class]
    17:23:02.824 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/services/others/AccountManagersServiceImpl.class]
    17:23:02.840 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/services/others/AgentServiceImpl.class]
    17:23:02.840 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/services/others/ChatServiceImpl.class]
    17:23:02.855 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/services/others/ContactListServiceImpl.class]
    17:23:02.855 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/services/others/CustomersServiceImpl.class]
    17:23:02.855 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/services/others/DemandeServiceImpl.class]
    17:23:02.855 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/services/others/NotificationsServiceImpl.class]
    17:23:02.855 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/services/updownload/storageService.class]
    17:23:02.887 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/web/authentication/LoginController.class]
    17:23:02.887 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/web/others/accountManagersController.class]
    17:23:02.902 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/web/others/agentsController.class]
    17:23:02.902 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/web/others/chatController.class]
    17:23:02.902 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/web/others/contactListController.class]
    17:23:02.902 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/web/others/customersController.class]
    17:23:02.918 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/web/others/demandeController.class]
    17:23:02.918 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/web/others/notificationsController.class]
    17:23:02.918 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: URL [jar:file:/C:/Users/YL/Desktop/Project/telusholding_chat_admin_api.jar!/com/telusholding/chat/admin/api/telusholding_chat_admin_api/web/updownload/UploadController.class]
    17:23:03.363 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerProcessor'
    17:23:03.363 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'conversionServicePostProcessor'
    17:23:03.378 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerFactory'
    17:23:03.394 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'
    17:23:03.394 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'
    17:23:03.394 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalPersistenceAnnotationProcessor'
    17:23:03.394 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor'
    17:23:03.394 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.boot.context.internalConfigurationPropertiesBinder'
    17:23:03.394 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.boot.context.internalConfigurationPropertiesBinderFactory'
    17:23:03.394 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.aop.config.internalAutoProxyCreator'
    17:23:03.472 [main] DEBUG org.springframework.ui.context.support.UiApplicationContextUtils - Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@1433046b]
    17:23:03.472 [main] WARN org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
    17:23:03.488 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
    org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:163)
            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577)
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
            at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:720)
            at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:401)
            at org.springframework.boot.SpringApplication.run(SpringApplication.java:302)
            at org.springframework.boot.SpringApplication.run(SpringApplication.java:1291)
            at org.springframework.boot.SpringApplication.run(SpringApplication.java:1280)
            at com.telusholding.chat.admin.api.telusholding_chat_admin_api.TelusholdingChatAdminApiApplication.main(TelusholdingChatAdminApiApplication.java:11)
    Caused by: org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getWebServerFactory(ServletWebServerApplicationContext.java:210)
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180)
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160)
            ... 8 common frames omitted
    
    
    • Here My Main class :
    @SpringBootApplication
    public class TelusholdingChatAdminApiApplication extends SpringBootServletInitializer {
        public static void main(String[] args) {
            SpringApplication.run(TelusholdingChatAdminApiApplication.class, args);
        }
    
    
    }
    
  • Here my pom.xml

    <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <packaging>jar</packaging>
        <parent>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.7.0-SNAPSHOT</version>
            <relativePath/> <!-- lookup parent from repository -->
        </parent>
        <groupId>com.telusholding.chat.admin.api</groupId>
        <artifactId>telusholding_chat_admin_api</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <name>telusholding_chat_admin_api</name>
        <description>telusholding_chat_admin_api</description>
        <properties>
            <java.version>12</java.version>
            <start-class>com.telusholding.chat.admin.api.telusholding_chat_admin_api.TelusholdingChatAdminApiApplication</start-class>
        </properties>
        <dependencies>
    
    
    
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter</artifactId>
            </dependency>
    
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-configuration-processor</artifactId>
                <optional>true</optional>
            </dependency>
    
    
    
            <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>2.13.1</version>
            </dependency>
            <!-- https://mvnrepository.com/artifact/org.apache.maven/maven-plugin-api -->
            <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-plugin-api</artifactId>
                <version>3.6.3</version>
            </dependency>
    
    
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-data-jpa</artifactId>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-jdbc</artifactId>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-security</artifactId>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-web</artifactId>
            </dependency>
            <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-tomcat -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-tomcat</artifactId>
                <version>2.7.0-SNAPSHOT</version>
            </dependency>
    
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-web-services</artifactId>
            </dependency>
    
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-test</artifactId>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-test</artifactId>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.hibernate.validator</groupId>
                <artifactId>hibernate-validator</artifactId>
                <version>7.0.1.Final</version>
            </dependency>
            <dependency>
                <groupId>io.jsonwebtoken</groupId>
                <artifactId>jjwt</artifactId>
                <version>0.9.0</version>
            </dependency>
            <dependency>
                <groupId>net.minidev</groupId>
                <artifactId>json-smart</artifactId>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8.2</version>
                <type>maven-plugin</type>
            </dependency>
        </dependencies>
    
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.22.2</version>
                    <configuration>
                        <skipTests>true</skipTests>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>3.7.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-project-info-reports-plugin</artifactId>
                    <version>3.1.2</version>
                </plugin>
                <plugin>
                    <!-- Build an executable JAR -->
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.2.2</version>
                    <configuration>
                        <archive>
                            <manifest>
                                <addClasspath>true</addClasspath>
                                <classpathPrefix>lib/</classpathPrefix>
                                <mainClass>com.telusholding.chat.admin.api.telusholding_chat_admin_api.TelusholdingChatAdminApiApplication</mainClass>
                            </manifest>
                        </archive>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <configuration>
                        <fork>true</fork>
                        <mainClass>com.telusholding.chat.admin.api.telusholding_chat_admin_api.TelusholdingChatAdminApiApplication</mainClass>
                    </configuration>
                    <executions>
                        <execution>
                            <goals>
                                <goal>repackage</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
        <repositories>
            <repository>
                <id>spring-milestones</id>
                <name>Spring Milestones</name>
                <url>https://repo.spring.io/milestone</url>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </repository>
            <repository>
                <id>spring-snapshots</id>
                <name>Spring Snapshots</name>
                <url>https://repo.spring.io/snapshot</url>
                <releases>
                    <enabled>false</enabled>
                </releases>
            </repository>
        </repositories>
        <pluginRepositories>
            <pluginRepository>
                <id>spring-milestones</id>
                <name>Spring Milestones</name>
                <url>https://repo.spring.io/milestone</url>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </pluginRepository>
            <pluginRepository>
                <id>spring-snapshots</id>
                <name>Spring Snapshots</name>
                <url>https://repo.spring.io/snapshot</url>
                <releases>
                    <enabled>false</enabled>
                </releases>
            </pluginRepository>
        </pluginRepositories>
    </project>
    
  • Here is my application propriety :

    #security.basic.enabled=false
    #spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect
    spring.jpa.database=mysql
    spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect
    spring.jpa.hibernate.ddl-auto=update
    spring.datasource.url=jdbc:mysql://localhost:3306/telus_chat_admin?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
    spring.datasource.username=root
    spring.datasource.password=
    spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
    spring.jackson.serialization.fail-on-empty-beans=false
    spring.main.web-application-type=none
    
    #security
    spring.security.jwt.tokenExpirationTime=60
    spring.security.jwt.tokenIssuer=http://localhost:8080
    spring.security.jwt.tokenSigningKey=kner82348
    spring.main.allow-circular-references = true
    ## MULTIPART (MultipartProperties)
    # Enable multipart uploads
    spring.servlet.multipart.enabled=true
    # Threshold after which files are written to disk.
    spring.servlet.multipart.file-size-threshold=2KB
    # Max file size.
    spring.servlet.multipart.max-file-size=200MB
    # Max Request Size
    spring.servlet.multipart.max-request-size=215MB
    

Here is for last my spring.factories

# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration,\
org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration,\
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration,\
org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration

Please let me know after ur test if my problem got from my machine or something in configurations, i hope everything have been clearly given in this post to fixe the issue.

0 Answers
Related