{"id":17,"date":"2017-08-19T18:25:03","date_gmt":"2017-08-19T09:25:03","guid":{"rendered":"http:\/\/ito-u-oti.com\/?p=17"},"modified":"2018-05-04T20:19:24","modified_gmt":"2018-05-04T11:19:24","slug":"post-17","status":"publish","type":"post","link":"https:\/\/ito-u-oti.com\/?p=17","title":{"rendered":"spring tools suite \u304b\u3089H2database\u3068mybatis\u3092\u7528\u3044\u305fmaven\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eJunit\u30c6\u30b9\u30c8\u3092\u3057\u3088\u3046\u3068\u3057\u305f\u6642\u306b\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f"},"content":{"rendered":"<h2 id=\"outline__1\">spring tools suite \u304b\u3089H2database\u3068mybatis\u3092\u7528\u3044\u305fmaven\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eJunit\u30c6\u30b9\u30c8\u3092\u3057\u3088\u3046\u3068\u3057\u305f\u6642\u306b\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f<\/h2>\n<h3 id=\"outline__1_1\">\u4e8b\u8c61<\/h3>\n<p>spring tools suite \u304b\u3089H2database\u3068mybatis\u3092\u7528\u3044\u305fmaven\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eJunit\u30c6\u30b9\u30c8\u3092\u3057\u3088\u3046\u3068\u3057\u305f\u6642\u306b\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f<\/p>\n<h3 id=\"outline__1_2\">\u30a8\u30e9\u30fc\u5185\u5bb9<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nCaused by: java.lang.ClassNotFoundException: org.h2.DriverCaused by: java.lang.ClassNotFoundException: org.h2.Driver at \r\njava.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at \r\nsun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at\r\norg.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2131) ... 50 common frames omitted\r\n<\/pre>\n<h3 id=\"outline__1_3\">\u539f\u56e0<\/h3>\n<p>H2\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u306e\u30d1\u30b9\u304c\u7e4b\u304c\u3063\u3066\u3044\u306a\u3044\u305f\u3081\u767a\u751f<\/p>\n<h3 id=\"outline__1_4\">\u89e3\u6c7a\u7b56<\/h3>\n<p>pom.xml\u306eprofiles\u306bcom.h2database\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\t&lt;profiles&gt;\r\n        &lt;profile&gt;\r\n            &lt;id&gt;local&lt;\/id&gt;\r\n            &lt;activation&gt;\r\n                &lt;activeByDefault&gt;true&lt;\/activeByDefault&gt;\r\n            &lt;\/activation&gt;\r\n            &lt;properties&gt;\r\n                &lt;resource.directory&gt;src\/main\/resources&lt;\/resource.directory&gt;\r\n                &lt;buildFinalName&gt;${project.artifactId}-${project.version}&lt;\/buildFinalName&gt;\r\n            &lt;\/properties&gt;\r\n            &lt;dependencies&gt;\r\n                &lt;dependency&gt;\r\n                    &lt;groupId&gt;com.h2database&lt;\/groupId&gt;\r\n                    &lt;artifactId&gt;h2&lt;\/artifactId&gt;\r\n                    &lt;scope&gt;runtime&lt;\/scope&gt;\r\n                &lt;\/dependency&gt;\r\n            &lt;\/dependencies&gt;\r\n        &lt;\/profile&gt;\r\n        &lt;profile&gt;\r\n            &lt;id&gt;test-server&lt;\/id&gt;\r\n            &lt;properties&gt;\r\n                &lt;resource.directory&gt;${basedir}\/configs\/test-server\/resources&lt;\/resource.directory&gt;\r\n                &lt;buildFinalName&gt;${project.artifactId}-${project.version}-test-server&lt;\/buildFinalName&gt;\r\n            &lt;\/properties&gt;\r\n        &lt;\/profile&gt;\r\n        &lt;profile&gt;\r\n            &lt;id&gt;production-server&lt;\/id&gt;\r\n            &lt;properties&gt;\r\n                &lt;resource.directory&gt;${basedir}\/configs\/production-server\/resources&lt;\/resource.directory&gt;\r\n                &lt;buildFinalName&gt;${project.artifactId}-${project.version}-production-server&lt;\/buildFinalName&gt;\r\n            &lt;\/properties&gt;\r\n        &lt;\/profile&gt;\r\n    &lt;\/profiles&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>spring tools suite \u304b\u3089H2database\u3068mybatis\u3092\u7528\u3044\u305fmaven\u30d7\u30ed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":93,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,27,25,28,24,7],"tags":[12,11,14,13,10],"class_list":["post-17","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-h2database","category-junit","category-maven","category-mybatis","category-spring","category-error-bugs","tag-h2","tag-junit","tag-maven","tag-mybatis","tag-spring"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":7,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":411,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions\/411"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/media\/93"}],"wp:attachment":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}