{"action":"opened","issue":{"url":"https://api.github.com/repos/baomidou/mybatis-plus-samples/issues/8","repository_url":"https://api.github.com/repos/baomidou/mybatis-plus-samples","labels_url":"https://api.github.com/repos/baomidou/mybatis-plus-samples/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/baomidou/mybatis-plus-samples/issues/8/comments","events_url":"https://api.github.com/repos/baomidou/mybatis-plus-samples/issues/8/events","html_url":"https://github.com/baomidou/mybatis-plus-samples/issues/8","id":392141737,"node_id":"MDU6SXNzdWUzOTIxNDE3Mzc=","number":8,"title":"Cannot load driver class: com.h2.Driver","user":{"login":"xgz1981","id":3489216,"node_id":"MDQ6VXNlcjM0ODkyMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/3489216?v=4","gravatar_id":"","url":"https://api.github.com/users/xgz1981","html_url":"https://github.com/xgz1981","followers_url":"https://api.github.com/users/xgz1981/followers","following_url":"https://api.github.com/users/xgz1981/following{/other_user}","gists_url":"https://api.github.com/users/xgz1981/gists{/gist_id}","starred_url":"https://api.github.com/users/xgz1981/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xgz1981/subscriptions","organizations_url":"https://api.github.com/users/xgz1981/orgs","repos_url":"https://api.github.com/users/xgz1981/repos","events_url":"https://api.github.com/users/xgz1981/events{/privacy}","received_events_url":"https://api.github.com/users/xgz1981/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-18T12:48:57Z","updated_at":"2018-12-18T12:48:57Z","closed_at":null,"author_association":"NONE","body":"导入samples项目到eclipse，编译无错，运行mybatis-plus-sample-pagination，一直会有异常：\r\n`Caused by: java.lang.IllegalStateException: Cannot load driver class: com.h2.Driver\r\n\tat org.springframework.util.Assert.state(Assert.java:94) ~[spring-core-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\n\tat org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.determineDriverClassName(DataSourceProperties.java:224) ~[spring-boot-autoconfigure-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\n\tat org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.initializeDataSourceBuilder(DataSourceProperties.java:176) ~[spring-boot-autoconfigure-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\n\tat org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration.createDataSource(DataSourceConfiguration.java:43) ~[spring-boot-autoconfigure-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\n\tat org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari.dataSource(DataSourceConfiguration.java:83) ~[spring-boot-autoconfigure-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_171]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171]\r\n\tat java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171]\r\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\n\t... 44 common frames omitted`\r\n\r\n但是查看maven依赖中已经引入h2-1.4.197.jar"}}
{"actor":{"display_login":"xgz1981"}}