{"id":21702272,"url":"https://github.com/huangyanbin/springbootdemo","last_synced_at":"2026-04-08T16:02:37.273Z","repository":{"id":108876438,"uuid":"91679436","full_name":"huangyanbin/SpringBootDemo","owner":"huangyanbin","description":"Spring Boot 示例","archived":false,"fork":false,"pushed_at":"2017-08-17T07:41:47.000Z","size":287,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T20:33:31.751Z","etag":null,"topics":["bootstrap","freemarker","hibernate","js","mybits","mysql","redis-cache","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huangyanbin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-18T10:14:44.000Z","updated_at":"2018-12-10T06:32:44.000Z","dependencies_parsed_at":"2023-04-24T16:17:21.233Z","dependency_job_id":null,"html_url":"https://github.com/huangyanbin/SpringBootDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/huangyanbin/SpringBootDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangyanbin%2FSpringBootDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangyanbin%2FSpringBootDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangyanbin%2FSpringBootDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangyanbin%2FSpringBootDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huangyanbin","download_url":"https://codeload.github.com/huangyanbin/SpringBootDemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangyanbin%2FSpringBootDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31562697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","freemarker","hibernate","js","mybits","mysql","redis-cache","spring-boot"],"created_at":"2024-11-25T21:12:59.994Z","updated_at":"2026-04-08T16:02:37.258Z","avatar_url":"https://github.com/huangyanbin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Spring Boot 示例\n------\n一个用于练手Spring boot 的demo.\n\n\u003e * 生成json数据，增加Result结果封装\n\u003e * 分别使用了Hibernate，mybatis。数据库mysql\n\u003e * 全局拦截，过滤\n\u003e * redis 缓存\n\u003e * 使用freemaker编写网页\n\u003e * 尝试写了table.js，根据json返回数据自动生成bootStrap样式表格\n根据返回数据自动填充div。\n\n------\n\n## 如何自动生成表格\n```js\nfillTabClass($(\"#ArtTable\"),\"文章列表\",[\n                            {   name:\"ID\",\n                                key:\"id\"\n                            },\n                            {   name:\"图标\",\n                                key:\"icon\",\n                                type:\"img\",\n                                style:\"width:40px;height:40px;\",class:\"img-circle\"},\n                            {   name:\"主题\",\n                                key:\"title\",\n                                type:\"span\"\n                            },\n                            {name:\"时间\",\n                                key:\"createTime\",\n                                format:function (time) {\n                                        return timeFormat(time);\n                                }\n                            }\n                ],result.data,\"table-bordered\");\n```\n## 如何自动填充数据\n```html\n\u003c!--自动拼接数据--\u003e\n\u003chuang:custom id=\"articleCustom\" style='display:none'\u003e\n    \u003cdiv class='col-md-12 articleItem'\u003e\n        \u003cdiv\u003e\n            \u003cimg src=$icon$ width='50px' height='50px'/\u003e\u003c/div\u003e\n        \u003cdiv class='col-md-10'\u003e\n            \u003cp\u003e$title$\u003c/p\u003e\n            \u003cp\u003e \u003csmall \u003e$content$\u003c/small\u003e\u003c/p\u003e\n            \u003cdiv class='col-md-11'\u003e\n                \u003cdiv\u003e\n                    \u003cimg src=$user.icon$ class='img-circle' width='25px' height='25px'/\u003e\u003c/div\u003e\n                \u003csmall \u003e$user.nickName$\u003c/small\u003e\u003c/div\u003e\n            \u003cp\u003e\u003csmall\u003e$createTime$\u003c/small\u003e\u003cp\u003e \u003chr/\u003e\u003c/div\u003e \u003c/span\u003e\n    \u003c/div\u003e\n\u003c/huang:custom\u003e\n```\n```js\n fillHtmlElement2($(\"#articleDiv\"),$(\"#articleCustom\"),article,\n        [\n            {   key:\"createTime\",\n                format:function(time) {\n                        return timeFormat(time);\n                        }\n            }\n        ]\n);\n```\n###  待完善 \n\n- [ ] 自动填充数据Div不够完善.\n- [ ] 自动生成表格可选项较少。\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangyanbin%2Fspringbootdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuangyanbin%2Fspringbootdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangyanbin%2Fspringbootdemo/lists"}