-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
可以不用引用jstl.jar DyanmicUrlPattern 增加 ignore方法
- Loading branch information
Showing
8 changed files
with
101 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
dactor/src/main/java/cn/ymotel/dactor/springboot/DactorMessageFilterConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package cn.ymotel.dactor.springboot; | ||
|
||
import cn.ymotel.dactor.action.ViewResolveActor; | ||
import cn.ymotel.dactor.async.web.AsyncServletFilter; | ||
import cn.ymotel.dactor.async.web.MessageSourceFilter; | ||
import cn.ymotel.dactor.async.web.view.*; | ||
import cn.ymotel.dactor.response.ResponseViewType; | ||
import cn.ymotel.dactor.response.TransportResponseViewActor; | ||
import org.springframework.beans.factory.InitializingBean; | ||
import org.springframework.boot.autoconfigure.AutoConfigureAfter; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
@Configuration(proxyBeanMethods = false) | ||
@ConditionalOnClass(javax.servlet.jsp.jstl.core.Config.class) | ||
@AutoConfigureAfter({DactorAutoConfiguration.class}) | ||
@ConditionalOnProperty(name = "dactor.enabled", matchIfMissing = true) | ||
public class DactorMessageFilterConfiguration { | ||
|
||
@Bean | ||
@ConditionalOnClass(javax.servlet.jsp.jstl.core.Config.class) | ||
public MessageSourceFilter MessageSourceFilter() { | ||
MessageSourceFilter filter=new MessageSourceFilter(); | ||
return filter; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ | ||
cn.ymotel.dactor.springboot.DactorAutoConfiguration,\ | ||
cn.ymotel.dactor.springboot.DactorServletAutoConfiguration | ||
cn.ymotel.dactor.springboot.DactorServletAutoConfiguration,\ | ||
cn.ymotel.dactor.springboot.DactorMessageFilterConfiguration |