1.3.78版本发布

dependabot/maven/jimureport-example/org.xerial-sqlite-jdbc-3.41.2.2
zhangdaiscott 2021-08-14 14:24:41 +08:00
parent 469da9bc81
commit 96713cb932
3 changed files with 35 additions and 6 deletions

5
.gitattributes vendored
View File

@ -1,5 +0,0 @@
*.js linguist-language=Java
*.css linguist-language=Java
*.html linguist-language=Java
*.vue linguist-language=Java
*.sql linguist-language=Java

View File

@ -1,4 +1,4 @@
package com.example.jmreport;
package org.jeecg.modules;
import org.jeecg.modules.jmreport.common.util.oConvertUtils;
import org.springframework.boot.SpringApplication;

View File

@ -0,0 +1,34 @@
package org.jeecg.modules.jmreport.config;
import org.jeecg.modules.jmreport.api.JmReportTokenServiceI;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
@Component
public class JimuReportTokenService implements JmReportTokenServiceI {
@Override
public String getToken(HttpServletRequest request) {
return "123";
}
@Override
public String getUsername(String s) {
return "admin";
}
@Override
public Boolean verifyToken(String s) {
return true;
}
@Override
public HttpHeaders customApiHeader() {
HttpHeaders header = new HttpHeaders();
header.add("custom-header1", "Please set a custom value 1");
header.add("token", "token value 2");
return header;
}
}