gaodm 4 anni fa
parent
commit
c5f3d61a3d

+ 0 - 5
src/main/java/com/diagbot/config/OgmConfigure.java

@@ -1,24 +1,19 @@
 package com.diagbot.config;
 
-import org.neo4j.ogm.config.ClasspathConfigurationSource;
-import org.neo4j.ogm.config.ConfigurationSource;
 import org.neo4j.ogm.session.SessionFactory;
 import org.springframework.beans.factory.annotation.Value;
-import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
 import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
 import org.springframework.data.neo4j.transaction.Neo4jTransactionManager;
 import org.springframework.transaction.annotation.EnableTransactionManagement;
 
-
 /**
  * @Description:
  * @Author: Mark
  * @time: 2020/07/31 14:20
  */
 @Configuration
-@EnableAutoConfiguration
 @EnableNeo4jRepositories(basePackages = "com.diagbot.repository")
 @EnableTransactionManagement
 public class OgmConfigure {

+ 5 - 5
src/main/java/com/diagbot/config/SwaggerConfigurer.java

@@ -36,11 +36,11 @@ public class SwaggerConfigurer {
      */
     private List<Parameter> parameter() {
         List<Parameter> params = new ArrayList<>();
-        params.add(new ParameterBuilder().name("Authorization")
-                .description("Authorization Bearer token")
-                .modelRef(new ModelRef("string"))
-                .parameterType("header")
-                .required(false).build());
+//        params.add(new ParameterBuilder().name("Authorization")
+//                .description("Authorization Bearer token")
+//                .modelRef(new ModelRef("string"))
+//                .parameterType("header")
+//                .required(false).build());
         return params;
     }