提交 4ba1571a 编写于 作者: lakernote's avatar lakernote

(重构)[整体](删除无效代码,登录页默认输入用户名密码laker)

上级 1bd1393d
......@@ -32,7 +32,7 @@ public class LakerDataPermissionHandler implements DataPermissionHandler {
// 1. 获取权限过滤相关信息
DataFilterMetaData dataFilterMetaData = DataFilterThreadLocal.get();
try {
log.info("开始进行权限过滤,dataFilterMetaData:{} , where: {},mappedStatementId: {}", dataFilterMetaData, where, mappedStatementId);
// log.info("开始进行权限过滤,dataFilterMetaData:{} , where: {},mappedStatementId: {}", dataFilterMetaData, where, mappedStatementId);
if (dataFilterMetaData == null) {
return where;
}
......
package com.laker.admin.framework.handler;
import cn.hutool.system.SystemUtil;
import com.laker.admin.config.AdminConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
......@@ -17,8 +18,14 @@ public class OpenBrowserHandler implements CommandLineRunner {
public void run(String... args) {
try {
//可以指定自己的路径
Runtime.getRuntime().exec("cmd /c start http://localhost:" + serverPort + "/admin");
System.out.println(adminConfig);
if (SystemUtil.getOsInfo().isWindows()) {
Runtime.getRuntime().exec("cmd /c start http://localhost:" + serverPort + "/admin");
} else {
String name = SystemUtil.getOsInfo().getName();
System.out.println("==================================================注意====================================================");
System.out.println("当前操作系统为:" + name + ",不支持自动打开浏览器,请自行在浏览器访问:" + "http://localhost:" + serverPort + "/admin");
System.out.println("==================================================注意====================================================");
}
} catch (Exception ex) {
ex.printStackTrace();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册