Commit 4b3afaf3 authored by wangsong's avatar wangsong

update ds.html

parent 63fec062
package com.chineseall.eden.authcenter.agent.interceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import java.util.List;
@Configuration
public class ApiInterceptorConfig extends WebMvcConfigurerAdapter {
......@@ -13,7 +17,13 @@ public class ApiInterceptorConfig extends WebMvcConfigurerAdapter {
@Override
public void addInterceptors(InterceptorRegistry registry) {
//注册TestInterceptor拦截器
InterceptorRegistration registration = registry.addInterceptor(apiInterceptor);
registration.addPathPatterns("/config/**"); //
// InterceptorRegistration registration = registry.addInterceptor(apiInterceptor);
// registration.addPathPatterns("/config/**"); //
}
@Override
public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
converters.add(0, converter);
}
}
......@@ -9,7 +9,7 @@
<script type="text/javascript" th:src="@{/static/js/browser.js}"></script>
<script th:inline="javascript">
/*<![CDATA[*/
var dianjiaoguanLoinUrl = [[${dianjiaoguanLoinUrl}]];
var dianjiaoguanLoinUrl = [[${dianjiaoguanLoginUrl}]];
var edenoperationLoginUrl = [[${edenoperationLoginUrl}]];
var logId = [[${logId}]];
var loginType = [[${loginType}]];
......
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