Spring Data Neo4j - How to get WrappingNeoServerBootstrapper to listen on 0.0.0.0

前端 未结 1 1154
有刺的猬
有刺的猬 2021-01-21 07:49

Been trying to get the WrappingNeoServerBootstrapper to start the Neo4j WebAdmin interface on 0.0.0.0 instead of localhost. Tried everything form specifying JAVA_OPTS (E.g., -Do

1条回答
  •  后悔当初
    2021-01-21 08:23

    I figured it out after reading through the Neo code. Here is my final working config.

    
    
    
        
        
            
                
                
            
         
    
    
    
         
            
                
            
             
    
    
    
        
        
    
    

    And here is the config class:

    public class Neo4jServerConfig implements Configurator {
    
        private Configuration config;
    
        public Ne4jServerConfig(Map config) {
            this.config = new MapConfiguration(config);
        }
    
        @Override
        public Configuration configuration() {
            return config; 
        }
    
        @Override
        public Map getDatabaseTuningProperties() {
            return null;
        }
    
        @Override
        public Set getThirdpartyJaxRsClasses() {
            return new HashSet<>();
        }
    }
    

    0 讨论(0)
提交回复
热议问题