*我是Spring MVC初学者,使用Tomcat 7.0.79和Eclipse来运行spring应用程序。我在运行时收到以下错误。
ERROR info.magnolia.repository.DefaultRepositoryManager 26.09.2019 11:11:38 -- org.apache.jackrabbit.core.config.ConfigurationException: Could not load JDBC driver class com.mysql.cj.jdbc.Driver
MySQL是8版本 但是mysql-connector-java-8.0.17.jar已经作为Maven依赖项存在于项目中 以下是我的jackrabbit配置的摘要:
<DataSources>
<DataSource name="author">
<param name="driver" value="com.mysql.cj.jdbc.Driver" />
<param name="databaseType" value="mysql" />
<param name="maxPoolSize" value="200" />
<param name="url" value="jdbc:mysql://localhost:3306/db_salesportal_author?autoReconnect=true&useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC&characterEncoding=UTF8&useSSL=false" />
<param name="user" value="****" />
<param name="password" value="****" />
<param name="validationQuery" value="select 1" />
</DataSource>
<DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
<param name="dataSourceName" value="author" />
<param name="databaseType" value="mysql" />
<param name="minRecordLength" value="1024" />
<param name="maxConnections" value="100" />
<param name="copyWhenReading" value="true" />
<param name="tablePrefix" value="" />
</DataStore>