diff --git a/README.MD b/README.MD index 71606b3..53922cc 100644 --- a/README.MD +++ b/README.MD @@ -7,6 +7,8 @@ Aurora是一个简单高效的后台管理系统。项目基础框架采用全新的Java Web开发框架 —— Spring Boot2.0.4,消除了繁杂的XML配置,使得二次开发更为简单;数据访问层采用Spring boot Jpa,可快速高效对数据进行操作,消除了大量传统XML配置SQL的代码,分页使用Pageable;安全框架采用时下流行的Apache Shiro,可实现对按钮级别的权限控制;前端页面使用KidAdmin构建,并提供多套配色以供选择。 ### 预览地址,临时域名,正式域名auaur.net,已在备案中 [http://xiswl.xyz](http://xiswl.xyz) +### 项目相关教程 +[Spring boot循序渐进](https://www.zhengjie.me/categories/Spring-boot-循序渐进/) ### SSM + shiro + redis 版移步 [https://gitee.com/quella01/Quella](https://gitee.com/quella01/Quella) diff --git a/pom.xml b/pom.xml index b296988..de694be 100644 --- a/pom.xml +++ b/pom.xml @@ -116,7 +116,7 @@ lombok true - + net.sourceforge.nekohtml nekohtml @@ -126,8 +126,6 @@ org.springframework.boot spring-boot-starter-tomcat - - compile diff --git a/src/main/java/me/aurora/config/job/MyJobRunner.java b/src/main/java/me/aurora/config/job/MyJobRunner.java index f3c48a6..bf8db79 100644 --- a/src/main/java/me/aurora/config/job/MyJobRunner.java +++ b/src/main/java/me/aurora/config/job/MyJobRunner.java @@ -33,6 +33,9 @@ public class MyJobRunner implements ApplicationRunner { */ @Override public void run(ApplicationArguments applicationArguments){ + + System.out.println("--------------------开始注入定时任务---------------------"); + List jobs = jobRepo.findAll(); jobs.forEach(scheduleJob -> { ScheduleUtils.createScheduleJob(scheduler, scheduleJob); diff --git a/src/main/resources/static/css/github_activity_widget.css b/src/main/resources/static/css/github_activity_widget.css new file mode 100644 index 0000000..a3f877d --- /dev/null +++ b/src/main/resources/static/css/github_activity_widget.css @@ -0,0 +1,174 @@ +.activity * { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.activity *:before, +.activity *:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.activity { + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} + +.activity * { + margin: 0; + border: 0; + border-radius: 0; + padding: 0; +} + +.clearfix:before, +.clearfix:after { + display: table; + content: " "; +} + +.clearfix:after { + clear: both; +} + +.activity { + margin-bottom: 20px; + border: 1px solid #d5d5d5; + border-radius: 4px; + -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05); + box-shadow: 0 1px 1px rgba(0,0,0,.05); + background-color: #ffffff; + + color: #333; + line-height: 1.42857143; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; +} + +.activity a { + background: transparent; + text-decoration: none; +} + +.activity a:active { + outline: 0; +} + +.activity a:hover { + outline: 0; +} + +.activity a:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} + +.activity-head { + border-bottom: 1px solid #d5d5d5; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + padding: 8px; + background-color: #eaeaea; + background-image: -moz-linear-gradient(#fafafa, #eaeaea); + background-image: -webkit-linear-gradient(#fafafa, #eaeaea); + background-image: linear-gradient(#fafafa, #eaeaea); + background-repeat: repeat-x; +} + +.activity-head img { + width: 48px; + height: 48px; + margin-right: 8px; + border-radius: 4px; + vertical-align: middle; + float: left!important; +} + +.activity-head h4 a { + color: #555555; + line-height: 1; + font-size: 24px; + font-weight: 500; +} + +.activity-head small a { + color: #999; + font-size: 18px; + font-weight: 400; +} + +.activity-body { + height: 300px; + overflow-y: scroll; +} + +.activity-body a { + color: #4183c4; +} + +.activity-body a:hover, +.activity-body a:focus { + color: #4183c4; + text-decoration: underline; +} + +.activity-body li { + position: relative; + display: block; + margin-bottom: -1px; + border-top: 1px solid #d5d5d5; + border-bottom: 1px solid #d5d5d5; + padding: 10px 15px; + background-color: #ffffff; + + color: #777777; +} + +.activity-body li:first-child { + border-top-width: 0; +} + +.activity-body li:last-child { + border-bottom-width: 0; +} + +.activity-body li small { + color: #bbbbbb; +} + +.activity-foot { + border-top: 1px solid #d5d5d5; + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; + padding: 8px; + background-color: #eaeaea; + background-image: -moz-linear-gradient(#fafafa, #eaeaea); + background-image: -webkit-linear-gradient(#fafafa, #eaeaea); + background-image: linear-gradient(#fafafa, #eaeaea); + background-repeat: repeat-x; + + color: #999999; + text-shadow: 0 1px 0 #fff; + line-height: 1; + font-size: 12px; + font-weight: 400; + text-align: right; +} + +.activity-foot a { + color: #999999; +} + +.activity-foot a:hover, +.activity-foot a:focus { + color: #777777; +} + +.pro_name a{color: #4183c4;} +.osc_git_title{background-color: #fff;} +.osc_git_box{background-color: #fff;} +.osc_git_box{border-color: #E3E9ED;} +.osc_git_info{color: #666;} +.osc_git_main a{color: #9B9B9B;} diff --git a/src/main/resources/static/js/github_repo_widget_en.js b/src/main/resources/static/js/github_repo_widget_en.js new file mode 100644 index 0000000..61ceb37 --- /dev/null +++ b/src/main/resources/static/js/github_repo_widget_en.js @@ -0,0 +1,64 @@ + +$(function () { + + var i = 0; + + $('.github-widget-repo').each(function () { + + if (i == 0) $('head').append(''); + i++; + + var $container = $(this); + var repo_name = $container.data('repo'); + var html_encode = function (str) { + if (!str || str.length == 0) return ""; + return str.replace(//g, ">"); + }; + + $.ajax({ + url: 'https://api.github.com/repos/' + repo_name, + dataType: 'jsonp', + + success: function (results) { + var repo = results.data; + + var pushed_at = repo.pushed_at.substr(0, 10); + var url_regex = /((http|https):\/\/)*[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/ + if (repo.homepage && (m = repo.homepage.match(url_regex))) { + if (m[0] && !m[1]) repo.homepage = 'http://' + m[0]; + } + else { + repo.homepage = ''; + } + + var $widget = $(' \ +
\ + \ +
\ +

' + html_encode(repo.description) + ' — More...

\ + \ +
\ +
\ +
\ +

master branch Latest Commit:' + pushed_at + '

\ + Download Zip \ +
\ +
\ + '); + $widget.appendTo($container); + } + }) + }); + +}); \ No newline at end of file diff --git a/src/main/resources/templates/common/app.html b/src/main/resources/templates/common/app.html index 723fdfd..3622b8e 100644 --- a/src/main/resources/templates/common/app.html +++ b/src/main/resources/templates/common/app.html @@ -38,15 +38,14 @@
-
源码地址
+
项目源码
-

代码实现以后会更新到博客:zhengjie.me

-

脚手架源码: - - star - - (开发中...) +

项目相关实现:Spring boot循序渐进

+

码云  + star

+

github 

+
@@ -231,6 +230,8 @@
+ + + + \ No newline at end of file diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 0b37853..ee62d90 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -5,6 +5,7 @@ Aurora 后台管理 +