{"action":"created","comment":{"url":"https://api.github.com/repos/spring-projects/spring-session/pulls/comments/57902626","id":57902626,"diff_hunk":"@@ -0,0 +1,41 @@\n+/*\n+ * Copyright 2014-2016 the original author or authors.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package sample.config;\n+\n+import org.h2.server.web.WebServlet;\n+\n+import org.springframework.boot.context.embedded.ServletRegistrationBean;\n+import org.springframework.context.annotation.Bean;\n+import org.springframework.context.annotation.Configuration;\n+\n+/**\n+ * Initializes the H2 {@link WebServlet} so we can access our in memory database from the\n+ * URL \"/h2\".\n+ *\n+ * @author Rob Winch\n+ */\n+@Configuration\n+public class H2Initializer {\n+\n+\t@Bean","path":"samples/httpsession-jdbc-boot/src/main/java/sample/config/H2Initializer.java","position":34,"original_position":34,"commit_id":"c99e4b7290a75ca8b522f3e7725bbfa6fc87db82","original_commit_id":"c99e4b7290a75ca8b522f3e7725bbfa6fc87db82","user":{"login":"vpavic","id":1149230,"avatar_url":"https://avatars.githubusercontent.com/u/1149230?v=3","gravatar_id":"","url":"https://api.github.com/users/vpavic","html_url":"https://github.com/vpavic","followers_url":"https://api.github.com/users/vpavic/followers","following_url":"https://api.github.com/users/vpavic/following{/other_user}","gists_url":"https://api.github.com/users/vpavic/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavic/subscriptions","organizations_url":"https://api.github.com/users/vpavic/orgs","repos_url":"https://api.github.com/users/vpavic/repos","events_url":"https://api.github.com/users/vpavic/events{/privacy}","received_events_url":"https://api.github.com/users/vpavic/received_events","type":"User","site_admin":false},"body":"On a sidenote - websocket sample could also be changed to use auto-configuration for H2 console.","created_at":"2016-03-30T14:55:36Z","updated_at":"2016-03-30T14:55:36Z","html_url":"https://github.com/spring-projects/spring-session/pull/454#discussion_r57902626","pull_request_url":"https://api.github.com/repos/spring-projects/spring-session/pulls/454","_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-session/pulls/comments/57902626"},"html":{"href":"https://github.com/spring-projects/spring-session/pull/454#discussion_r57902626"},"pull_request":{"href":"https://api.github.com/repos/spring-projects/spring-session/pulls/454"}}},"pull_request":{"url":"https://api.github.com/repos/spring-projects/spring-session/pulls/454","id":64520857,"html_url":"https://github.com/spring-projects/spring-session/pull/454","diff_url":"https://github.com/spring-projects/spring-session/pull/454.diff","patch_url":"https://github.com/spring-projects/spring-session/pull/454.patch","issue_url":"https://api.github.com/repos/spring-projects/spring-session/issues/454","number":454,"state":"open","locked":false,"title":"Add JDBC Spring Boot sample","user":{"login":"vpavic","id":1149230,"avatar_url":"https://avatars.githubusercontent.com/u/1149230?v=3","gravatar_id":"","url":"https://api.github.com/users/vpavic","html_url":"https://github.com/vpavic","followers_url":"https://api.github.com/users/vpavic/followers","following_url":"https://api.github.com/users/vpavic/following{/other_user}","gists_url":"https://api.github.com/users/vpavic/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavic/subscriptions","organizations_url":"https://api.github.com/users/vpavic/orgs","repos_url":"https://api.github.com/users/vpavic/repos","events_url":"https://api.github.com/users/vpavic/events{/privacy}","received_events_url":"https://api.github.com/users/vpavic/received_events","type":"User","site_admin":false},"body":"I've signed the CLA.","created_at":"2016-03-29T19:34:54Z","updated_at":"2016-03-30T14:55:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0409bc6ac0207abe1edb11da54fb5c7547d032f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spring-projects/spring-session/pulls/454/commits","review_comments_url":"https://api.github.com/repos/spring-projects/spring-session/pulls/454/comments","review_comment_url":"https://api.github.com/repos/spring-projects/spring-session/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-projects/spring-session/issues/454/comments","statuses_url":"https://api.github.com/repos/spring-projects/spring-session/statuses/c99e4b7290a75ca8b522f3e7725bbfa6fc87db82","head":{"label":"vpavic:jdbc-boot-sample","ref":"jdbc-boot-sample","sha":"c99e4b7290a75ca8b522f3e7725bbfa6fc87db82","user":{"login":"vpavic","id":1149230,"avatar_url":"https://avatars.githubusercontent.com/u/1149230?v=3","gravatar_id":"","url":"https://api.github.com/users/vpavic","html_url":"https://github.com/vpavic","followers_url":"https://api.github.com/users/vpavic/followers","following_url":"https://api.github.com/users/vpavic/following{/other_user}","gists_url":"https://api.github.com/users/vpavic/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavic/subscriptions","organizations_url":"https://api.github.com/users/vpavic/orgs","repos_url":"https://api.github.com/users/vpavic/repos","events_url":"https://api.github.com/users/vpavic/events{/privacy}","received_events_url":"https://api.github.com/users/vpavic/received_events","type":"User","site_admin":false},"repo":{"id":51258288,"name":"spring-session","full_name":"vpavic/spring-session","owner":{"login":"vpavic","id":1149230,"avatar_url":"https://avatars.githubusercontent.com/u/1149230?v=3","gravatar_id":"","url":"https://api.github.com/users/vpavic","html_url":"https://github.com/vpavic","followers_url":"https://api.github.com/users/vpavic/followers","following_url":"https://api.github.com/users/vpavic/following{/other_user}","gists_url":"https://api.github.com/users/vpavic/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavic/subscriptions","organizations_url":"https://api.github.com/users/vpavic/orgs","repos_url":"https://api.github.com/users/vpavic/repos","events_url":"https://api.github.com/users/vpavic/events{/privacy}","received_events_url":"https://api.github.com/users/vpavic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vpavic/spring-session","description":"Spring Session","fork":true,"url":"https://api.github.com/repos/vpavic/spring-session","forks_url":"https://api.github.com/repos/vpavic/spring-session/forks","keys_url":"https://api.github.com/repos/vpavic/spring-session/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vpavic/spring-session/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vpavic/spring-session/teams","hooks_url":"https://api.github.com/repos/vpavic/spring-session/hooks","issue_events_url":"https://api.github.com/repos/vpavic/spring-session/issues/events{/number}","events_url":"https://api.github.com/repos/vpavic/spring-session/events","assignees_url":"https://api.github.com/repos/vpavic/spring-session/assignees{/user}","branches_url":"https://api.github.com/repos/vpavic/spring-session/branches{/branch}","tags_url":"https://api.github.com/repos/vpavic/spring-session/tags","blobs_url":"https://api.github.com/repos/vpavic/spring-session/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vpavic/spring-session/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vpavic/spring-session/git/refs{/sha}","trees_url":"https://api.github.com/repos/vpavic/spring-session/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vpavic/spring-session/statuses/{sha}","languages_url":"https://api.github.com/repos/vpavic/spring-session/languages","stargazers_url":"https://api.github.com/repos/vpavic/spring-session/stargazers","contributors_url":"https://api.github.com/repos/vpavic/spring-session/contributors","subscribers_url":"https://api.github.com/repos/vpavic/spring-session/subscribers","subscription_url":"https://api.github.com/repos/vpavic/spring-session/subscription","commits_url":"https://api.github.com/repos/vpavic/spring-session/commits{/sha}","git_commits_url":"https://api.github.com/repos/vpavic/spring-session/git/commits{/sha}","comments_url":"https://api.github.com/repos/vpavic/spring-session/comments{/number}","issue_comment_url":"https://api.github.com/repos/vpavic/spring-session/issues/comments{/number}","contents_url":"https://api.github.com/repos/vpavic/spring-session/contents/{+path}","compare_url":"https://api.github.com/repos/vpavic/spring-session/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vpavic/spring-session/merges","archive_url":"https://api.github.com/repos/vpavic/spring-session/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vpavic/spring-session/downloads","issues_url":"https://api.github.com/repos/vpavic/spring-session/issues{/number}","pulls_url":"https://api.github.com/repos/vpavic/spring-session/pulls{/number}","milestones_url":"https://api.github.com/repos/vpavic/spring-session/milestones{/number}","notifications_url":"https://api.github.com/repos/vpavic/spring-session/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vpavic/spring-session/labels{/name}","releases_url":"https://api.github.com/repos/vpavic/spring-session/releases{/id}","deployments_url":"https://api.github.com/repos/vpavic/spring-session/deployments","created_at":"2016-02-07T18:01:12Z","updated_at":"2016-02-07T18:01:14Z","pushed_at":"2016-03-29T19:12:47Z","git_url":"git://github.com/vpavic/spring-session.git","ssh_url":"git@github.com:vpavic/spring-session.git","clone_url":"https://github.com/vpavic/spring-session.git","svn_url":"https://github.com/vpavic/spring-session","homepage":null,"size":17783,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spring-projects:master","ref":"master","sha":"b97306a83d5d52d957b1086ec3b8b9e7c3f69227","user":{"login":"spring-projects","id":317776,"avatar_url":"https://avatars.githubusercontent.com/u/317776?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":21052744,"name":"spring-session","full_name":"spring-projects/spring-session","owner":{"login":"spring-projects","id":317776,"avatar_url":"https://avatars.githubusercontent.com/u/317776?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-projects/spring-session","description":"Spring Session","fork":false,"url":"https://api.github.com/repos/spring-projects/spring-session","forks_url":"https://api.github.com/repos/spring-projects/spring-session/forks","keys_url":"https://api.github.com/repos/spring-projects/spring-session/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-projects/spring-session/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-projects/spring-session/teams","hooks_url":"https://api.github.com/repos/spring-projects/spring-session/hooks","issue_events_url":"https://api.github.com/repos/spring-projects/spring-session/issues/events{/number}","events_url":"https://api.github.com/repos/spring-projects/spring-session/events","assignees_url":"https://api.github.com/repos/spring-projects/spring-session/assignees{/user}","branches_url":"https://api.github.com/repos/spring-projects/spring-session/branches{/branch}","tags_url":"https://api.github.com/repos/spring-projects/spring-session/tags","blobs_url":"https://api.github.com/repos/spring-projects/spring-session/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-projects/spring-session/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-projects/spring-session/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-projects/spring-session/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-projects/spring-session/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-projects/spring-session/languages","stargazers_url":"https://api.github.com/repos/spring-projects/spring-session/stargazers","contributors_url":"https://api.github.com/repos/spring-projects/spring-session/contributors","subscribers_url":"https://api.github.com/repos/spring-projects/spring-session/subscribers","subscription_url":"https://api.github.com/repos/spring-projects/spring-session/subscription","commits_url":"https://api.github.com/repos/spring-projects/spring-session/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-projects/spring-session/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-projects/spring-session/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-projects/spring-session/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-projects/spring-session/contents/{+path}","compare_url":"https://api.github.com/repos/spring-projects/spring-session/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-projects/spring-session/merges","archive_url":"https://api.github.com/repos/spring-projects/spring-session/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-projects/spring-session/downloads","issues_url":"https://api.github.com/repos/spring-projects/spring-session/issues{/number}","pulls_url":"https://api.github.com/repos/spring-projects/spring-session/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-projects/spring-session/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-projects/spring-session/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-projects/spring-session/labels{/name}","releases_url":"https://api.github.com/repos/spring-projects/spring-session/releases{/id}","deployments_url":"https://api.github.com/repos/spring-projects/spring-session/deployments","created_at":"2014-06-20T21:16:58Z","updated_at":"2016-03-30T13:57:48Z","pushed_at":"2016-03-30T14:28:12Z","git_url":"git://github.com/spring-projects/spring-session.git","ssh_url":"git@github.com:spring-projects/spring-session.git","clone_url":"https://github.com/spring-projects/spring-session.git","svn_url":"https://github.com/spring-projects/spring-session","homepage":"https://spring.io/spring-session","size":18336,"stargazers_count":509,"watchers_count":509,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":291,"mirror_url":null,"open_issues_count":94,"forks":291,"open_issues":94,"watchers":509,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-session/pulls/454"},"html":{"href":"https://github.com/spring-projects/spring-session/pull/454"},"issue":{"href":"https://api.github.com/repos/spring-projects/spring-session/issues/454"},"comments":{"href":"https://api.github.com/repos/spring-projects/spring-session/issues/454/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-projects/spring-session/pulls/454/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-projects/spring-session/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-projects/spring-session/pulls/454/commits"},"statuses":{"href":"https://api.github.com/repos/spring-projects/spring-session/statuses/c99e4b7290a75ca8b522f3e7725bbfa6fc87db82"}}}}