Commit 054b57ea authored by 陈炎's avatar 陈炎

Merge branch 'dev-8.9.0' into 'uat'

Dev 8.9.0

See merge request !18
parents d50d3e60 03de176d
......@@ -173,7 +173,7 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-vault-config-databases</artifactId>
<version>3.0.4</version>
<version>3.0.5</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
......@@ -183,16 +183,12 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-vault-config</artifactId>
<version>2.1.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-vault-config</artifactId>
<version>2.1.5.RELEASE</version>
<version>3.0.5</version>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<groupId>org.springframework.vault</groupId>
<artifactId>spring-vault-core</artifactId>
<version>2.3.2</version>
</dependency>
<!-- 运维类依赖-->
......
......@@ -4,8 +4,9 @@ import cn.hutool.core.util.StrUtil;
import com.afanticar.afantiopenapi.controller.BaseController;
import com.afanticar.afantiopenapi.utils.JWTUtils;
import com.alibaba.fastjson.JSONObject;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;
......@@ -18,17 +19,19 @@ import java.util.Set;
* @contact chenyan@afanticar.com
* @since 2023/4/26/026
*/
@Component
@Slf4j
@Setter
@Component
@ConfigurationProperties(prefix = "ignored")
public class TokenInterceptor implements HandlerInterceptor {
@Value("#{'${ignored.uri}'.split(',')}")
private Set<String> ignoredUris;
private Set<String> uris;
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
String requestUri = request.getRequestURI();
if (ignoredUris.contains(requestUri)) {
if (uris.contains(requestUri)) {
return true;
}
String token = request.getHeader("authorization");
......
......@@ -67,6 +67,7 @@ public class FawOpenController extends BaseController {
@RequestParam(name = "publish_date_start") @DateTimeFormat(pattern = "yyyy-MM-dd") Date publishDateStart,
@RequestParam(name = "publish_date_end") @DateTimeFormat(pattern = "yyyy-MM-dd") Date publishDateEnd,
@RequestParam(name = "type") String type) {
log.info("AAAAAAAAA:" + limit);
BaseResponse check = baseService.baseValidator(request,client, dataType, limit, limitPeriod);
if (check != null) {
return check;
......
......@@ -34,16 +34,23 @@ spring:
access-key-property: spring.rocket-mq.accessKey
secret-key-property: spring.rocket-mq.secretKey
# adb链接
generic:
enabled: true
kv:
enabled: false
backend: ${spring.profiles.active}
default-context: etladb
database:
databases:
master:
enabled: true
backend: ${spring.profiles.active}db
role: app-role
username-property: spring.datasource.dynamic.datasource.master.username
password-property: spring.datasource.dynamic.datasource.master.password
tmp:
enabled: true
backend: ${spring.profiles.active}db
role: external-role
username-property: spring.datasource.dynamic.datasource.tmp.username
password-property: spring.datasource.dynamic.datasource.tmp.password
#
#
......
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