Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cfld-postcard-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-backend
cfld-postcard-service
Commits
093e5e66
Commit
093e5e66
authored
Dec 15, 2023
by
zhouxudong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
f6a04991
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
4 deletions
+3
-4
PostcardApplication.java
src/main/java/com/postcard/service/PostcardApplication.java
+0
-2
WebConfig.java
...main/java/com/postcard/service/config/auth/WebConfig.java
+1
-1
WxLoginFilter.java
...ava/com/postcard/service/config/filter/WxLoginFilter.java
+1
-0
MyMetaObjectHandler.java
.../postcard/service/config/mybatis/MyMetaObjectHandler.java
+1
-1
No files found.
src/main/java/com/postcard/service/PostcardApplication.java
View file @
093e5e66
...
@@ -10,8 +10,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
...
@@ -10,8 +10,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* @Description:
* @Description:
*/
*/
@SpringBootApplication
@SpringBootApplication
/*@EnableOpenApi
@EnableSwagger2*/
public
class
PostcardApplication
{
public
class
PostcardApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
PostcardApplication
.
class
,
args
);
SpringApplication
.
run
(
PostcardApplication
.
class
,
args
);
...
...
src/main/java/com/postcard/service/config/auth/WebConfig.java
View file @
093e5e66
...
@@ -50,7 +50,7 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -50,7 +50,7 @@ public class WebConfig implements WebMvcConfigurer {
/** 需要拦截的信息 */
/** 需要拦截的信息 */
private
ArrayList
<
String
>
getIncludePathPatterns
()
{
private
ArrayList
<
String
>
getIncludePathPatterns
()
{
ArrayList
<
String
>
list
=
new
ArrayList
<>();
ArrayList
<
String
>
list
=
new
ArrayList
<>();
String
[]
urls
=
{
"/
**
"
};
String
[]
urls
=
{
"/
app
"
};
Collections
.
addAll
(
list
,
urls
);
Collections
.
addAll
(
list
,
urls
);
return
list
;
return
list
;
}
}
...
...
src/main/java/com/postcard/service/config/filter/WxLoginFilter.java
View file @
093e5e66
...
@@ -18,6 +18,7 @@ import javax.servlet.http.HttpServletRequest;
...
@@ -18,6 +18,7 @@ import javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.PrintWriter
;
import
java.io.PrintWriter
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
...
src/main/java/com/postcard/service/config/mybatis/MyMetaObjectHandler.java
View file @
093e5e66
...
@@ -46,7 +46,7 @@ public class MyMetaObjectHandler implements MetaObjectHandler {
...
@@ -46,7 +46,7 @@ public class MyMetaObjectHandler implements MetaObjectHandler {
property
->
{
property
->
{
if
(
metaObject
.
hasSetter
(
property
))
{
if
(
metaObject
.
hasSetter
(
property
))
{
if
(
property
.
endsWith
(
"By"
))
{
if
(
property
.
endsWith
(
"By"
))
{
this
.
setFieldValByName
(
property
,
userInfo
.
get
User
Name
(),
metaObject
);
this
.
setFieldValByName
(
property
,
userInfo
.
get
Nick
Name
(),
metaObject
);
}
}
if
(
property
.
endsWith
(
"Time"
))
{
if
(
property
.
endsWith
(
"Time"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment