Commit 093e5e66 authored by zhouxudong's avatar zhouxudong

提交代码

parent f6a04991
......@@ -10,8 +10,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* @Description:
*/
@SpringBootApplication
/*@EnableOpenApi
@EnableSwagger2*/
public class PostcardApplication {
public static void main(String[] args) {
SpringApplication.run(PostcardApplication.class, args);
......
......@@ -50,7 +50,7 @@ public class WebConfig implements WebMvcConfigurer {
/** 需要拦截的信息 */
private ArrayList<String> getIncludePathPatterns() {
ArrayList<String> list = new ArrayList<>();
String[] urls = {"/**"};
String[] urls = {"/app"};
Collections.addAll(list, urls);
return list;
}
......
......@@ -18,6 +18,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Map;
/**
......
......@@ -46,7 +46,7 @@ public class MyMetaObjectHandler implements MetaObjectHandler {
property -> {
if (metaObject.hasSetter(property)) {
if (property.endsWith("By")) {
this.setFieldValByName(property, userInfo.getUserName(), metaObject);
this.setFieldValByName(property, userInfo.getNickName(), metaObject);
}
if (property.endsWith("Time")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment