Проблема запуска Spring-Boot на сервере Linux - PullRequest
0 голосов
/ 20 сентября 2019

Итак, я пытаюсь запустить мой проект весенней загрузки на сервере Linux.Вот что я пытаюсь:

POM.XML

 <session-factory>
            <!-- &useSSL=false -->
            <!-- Database connection settings -->
            <property name="connection.driver_class">com.mysql.cj.jdbc.Driver</property>
            <property name="connection.url">jdbc:mysql://${MYSQL_HOST:localhost}:3306/test</property>
            <property name="connection.username">xxxx</property>
            <property name="connection.password">xxxx</property>

            <!-- Set the database dialect -->
            <property name="dialect">org.hibernate.dialect.MySQL8Dialect</property>

            <!-- Echo all executed SQL to stdout -->
            <property name="show_sql">true</property>

            <!-- Drop and re-create the database schema on startup -->
            <!-- This will either be set to create or update -->
            <property name="hbm2ddl.auto">create</property>
            <!-- Name the annotated Entity classes -->
            <mapping class="classname" />
    </session-factory>

Запуск процессов

mysqld   12839    mysql   20u  IPv4 181060      0t0  TCP 127.0.0.1:3306 (LISTEN)

application.properties

server.port = 8805

spring.mvc.view.prefix = / WEB-INF / jsps / spring.mvc.view.suffix = .jsp

Журнал ошибок:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeController' defined in file [/home/csadmin/LegalFD/target/classes/ca/sheridancollege/HomeController.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [ca.sheridancollege.HomeController]: Constructor threw exception; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1303) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE]
    at .....

Мне интересно, не удалось ли мне связаться смой JDBC или нет.Пожалуйста, предложите

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...