Browse Source

swagger扫描oauth2接口

test
smallchill 6 years ago
parent
commit
c28ea950c0
  1. 2
      blade-auth/src/main/java/org/springblade/auth/config/BladeResourceServerConfiguration.java
  2. 2
      blade-auth/src/main/resources/application.yml
  3. 2
      blade-service/blade-flow/src/main/java/org/springblade/flowable/engine/mapper/FlowMapper.xml
  4. 2
      pom.xml

2
blade-auth/src/main/java/org/springblade/auth/config/BladeResourceServerConfiguration.java

@ -47,7 +47,7 @@ public class BladeResourceServerConfiguration extends ResourceServerConfigurerAd
.successHandler(appLoginInSuccessHandler)
.and()
.authorizeRequests()
.antMatchers("/actuator/**", "/token/**", "/mobile/**").permitAll()
.antMatchers("/actuator/**", "/token/**", "/mobile/**", "/v2/api-docs", "/v2/api-docs-ext").permitAll()
.anyRequest().authenticated().and()
.csrf().disable();
}

2
blade-auth/src/main/resources/application.yml

@ -0,0 +1,2 @@
swagger:
base-package: org.springblade,org.springframework.security.oauth2.provider.endpoint

2
blade-service/blade-flow/src/main/java/org/springblade/flowable/engine/mapper/FlowMapper.xml

@ -47,7 +47,7 @@
<select id="findByParentModelId" parameterType="string" resultMap="flowModelResultMap">
select model.* from ACT_DE_MODEL_RELATION modelrelation
inner join ACT_DE_MODEL model on modelrelation.model_id = model.id
where modelrelation.parent_model_id = #{parentModelId, jdbcType=VARCHAR}
where modelrelation.parent_model_id = #{_parameter}
</select>
</mapper>

2
pom.xml

@ -15,7 +15,7 @@
<java.version>1.8</java.version>
<swagger.version>2.9.2</swagger.version>
<swagger.models.version>1.5.21</swagger.models.version>
<swagger.bootstrapui.version>1.9.1</swagger.bootstrapui.version>
<swagger.bootstrapui.version>1.9.2</swagger.bootstrapui.version>
<mybatis.plus.version>3.1.0</mybatis.plus.version>
<curator.framework.version>4.0.1</curator.framework.version>
<protostuff.version>1.6.0</protostuff.version>

Loading…
Cancel
Save