增加jetty9插件
This commit is contained in:
parent
fc38ead777
commit
5919bf7193
13
pom.xml
13
pom.xml
|
|
@ -221,6 +221,19 @@
|
||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.jetty</groupId>
|
||||||
|
<artifactId>jetty-maven-plugin</artifactId>
|
||||||
|
<version>9.2.8.v20150217</version>
|
||||||
|
<configuration>
|
||||||
|
<!-- <scanIntervalSeconds>10</scanIntervalSeconds> --><!-- 热部署时间间隔 -->
|
||||||
|
<reload>manual</reload><!-- 在控制台回车,重启工程 -->
|
||||||
|
<httpConnector>
|
||||||
|
<port>80</port><!-- 端口 -->
|
||||||
|
</httpConnector>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -4,7 +4,6 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
@ -29,8 +28,8 @@ import com.smallchill.core.toolbox.kit.StrKit;
|
||||||
@RequestMapping("/ztree")
|
@RequestMapping("/ztree")
|
||||||
public class ZTreeController extends BladeController {
|
public class ZTreeController extends BladeController {
|
||||||
|
|
||||||
@RequestMapping("/open/{type}/{index}/{name}/{source}/{check}/{where}/{intercept}/{ext}/{val}")
|
@RequestMapping("/open")
|
||||||
public ModelAndView open(@PathVariable String type, @PathVariable String index, @PathVariable String name, @PathVariable String source, @PathVariable String check, @PathVariable String where, @PathVariable String intercept, @PathVariable String ext, @PathVariable String val){
|
public ModelAndView open(@RequestParam String type, @RequestParam String index, @RequestParam String name, @RequestParam String source, @RequestParam String check, @RequestParam String where, @RequestParam String intercept, @RequestParam String ext, @RequestParam String val){
|
||||||
ModelAndView view = new ModelAndView("/common/_function/_ztree.html");
|
ModelAndView view = new ModelAndView("/common/_function/_ztree.html");
|
||||||
view.addObject("type", getTypeName(type, source));
|
view.addObject("type", getTypeName(type, source));
|
||||||
view.addObject("index", index);
|
view.addObject("index", index);
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
import com.smallchill.common.base.BaseController;
|
import com.smallchill.common.base.BaseController;
|
||||||
|
import com.smallchill.core.annotation.Permission;
|
||||||
import com.smallchill.core.constant.ConstShiro;
|
import com.smallchill.core.constant.ConstShiro;
|
||||||
import com.smallchill.core.shiro.ShiroKit;
|
|
||||||
import com.smallchill.core.toolbox.Func;
|
import com.smallchill.core.toolbox.Func;
|
||||||
import com.smallchill.core.toolbox.Paras;
|
import com.smallchill.core.toolbox.Paras;
|
||||||
import com.smallchill.core.toolbox.ajax.AjaxResult;
|
import com.smallchill.core.toolbox.ajax.AjaxResult;
|
||||||
|
|
@ -96,13 +96,11 @@ public class RoleController extends BaseController{
|
||||||
return BASE_PATH + "role_view.html";
|
return BASE_PATH + "role_view.html";
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("/authority/{roleId}/{roleName}")
|
@Permission({ConstShiro.ADMINISTRATOR, ConstShiro.ADMIN})
|
||||||
public String authority(@PathVariable String roleId, @PathVariable String roleName, ModelMap mm) {
|
@RequestMapping("/authority")
|
||||||
if(!ShiroKit.hasAnyRoles(ConstShiro.ADMINISTRATOR + "," + ConstShiro.ADMIN)){
|
public String authority(ModelMap mm) {
|
||||||
return "redirect:/unauth";
|
mm.put("roleId", getParameter("roleId"));
|
||||||
}
|
mm.put("roleName", getParameterToDecode("roleName"));
|
||||||
mm.put("roleId", roleId);
|
|
||||||
mm.put("roleName", Func.decodeUrl(roleName));
|
|
||||||
return BASE_PATH + "role_authority.html";
|
return BASE_PATH + "role_authority.html";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,13 +13,13 @@
|
||||||
<textarea id="${x.index!}_editor" name="${x.index!}_editor" ></textarea>
|
<textarea id="${x.index!}_editor" name="${x.index!}_editor" ></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script charset="utf-8" src="${basePath}/static/kindeditor/kindeditor.js"></script>
|
<script charset="utf-8" src="${ctxPath}/static/kindeditor/kindeditor.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
KindEditor.ready(function(K) {
|
KindEditor.ready(function(K) {
|
||||||
var editor = K.create('textarea[name="${x.index!}_editor"]', {
|
var editor = K.create('textarea[name="${x.index!}_editor"]', {
|
||||||
uploadJson : '${basePath}/kindeditor/upload_${x.blob!'json'}',
|
uploadJson : '${ctxPath}/kindeditor/upload_${x.blob!'json'}',
|
||||||
fileManagerJson : '${basePath}/kindeditor/file_manager_json',
|
fileManagerJson : '${ctxPath}/kindeditor/file_manager_json',
|
||||||
allowFileManager : false
|
allowFileManager : false
|
||||||
});
|
});
|
||||||
//----插入文件-----
|
//----插入文件-----
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
function _${x.index!}_initFileUpload(ids, type){
|
function _${x.index!}_initFileUpload(ids, type){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "${basePath}/kindeditor/initfile",
|
url: "${ctxPath}/kindeditor/initfile",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: false,
|
async: false,
|
||||||
data: {ids : ids},
|
data: {ids : ids},
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
for(var x = 0; x < file.length; x++){
|
for(var x = 0; x < file.length; x++){
|
||||||
var id = file[x].id;
|
var id = file[x].id;
|
||||||
var name = file[x].name;
|
var name = file[x].name;
|
||||||
var url = "${basePath}/kindeditor/renderFile/" + id;
|
var url = "${ctxPath}/kindeditor/renderFile/" + id;
|
||||||
if(type == "edit"){
|
if(type == "edit"){
|
||||||
$("#${x.index!}_file").append(_${x.index!}_getFile(url, id, name));
|
$("#${x.index!}_file").append(_${x.index!}_getFile(url, id, name));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
area: ["250", "420px"],
|
area: ["250", "420px"],
|
||||||
fix: false, //不固定
|
fix: false, //不固定
|
||||||
maxmin: true,
|
maxmin: true,
|
||||||
content: "${basePath}/ztree/open/${x.type!0}/_${x.index!0}/${x.name!0}/${x.source!0}/${x.check!0}/${x.where!0}/${x.intercept!0}/${x.ext!0}/" + val
|
content: "${ctxPath}/ztree/open/?type=${x.type!0}&index=_${x.index!0}&name=${x.name!0}&source=${x.source!0}&check=${x.check!0}&where=${x.where!0}&intercept=${x.intercept!0}&ext=${x.ext!0}&val=" + val
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
function initOpenTree(val){
|
function initOpenTree(val){
|
||||||
$.post("${basePath}/ztree/getTreeListName",{source:"${x.source!}", type:"${x.type!}", where:"${x.where!}", intercept:"${x.intercept!}", val:val},function(data){
|
$.post("${ctxPath}/ztree/getTreeListName",{source:"${x.source!}", type:"${x.type!}", where:"${x.where!}", intercept:"${x.intercept!}", val:val},function(data){
|
||||||
if(data.code === 0){
|
if(data.code === 0){
|
||||||
$("#_${x.index!}_INPUT").val(data.data);
|
$("#_${x.index!}_INPUT").val(data.data);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ var exwhere;
|
||||||
$.post(ctx + "/role/getPowerById", { id: ids }, function (data) {
|
$.post(ctx + "/role/getPowerById", { id: ids }, function (data) {
|
||||||
if (data.code === 0) {
|
if (data.code === 0) {
|
||||||
var roleName=rowData.NAME;
|
var roleName=rowData.NAME;
|
||||||
_this.open(_this.url + split + ids + split + roleName);
|
_this.open(_this.url + "?roleId=" + ids + "&roleName=" + roleName);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
layer_alert('请先给上级角色分配权限!', "warn");
|
layer_alert('请先给上级角色分配权限!', "warn");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user