anchor.diff:  [[boot-features-neo4j]]
   === Neo4j
   http://neo4j.com/[Neo4j] is an open-source NoSQL graph database that uses a rich data
  -model of nodes related by first class relationships, which is better suited for connected
  -big data than traditional rdbms approaches. Spring Boot offers several conveniences for
  +model of nodes connected by first class relationships, which is better suited for connected
  +big data than traditional RDBMS approaches. Spring Boot offers several conveniences for
   working with Neo4j, including the `spring-boot-starter-data-neo4j` "`Starter`".
   
   
   
   [[boot-features-connecting-to-neo4j]]
   ==== Connecting to a Neo4j Database
  -You can inject an auto-configured `Neo4jSession`, `Session`, or `Neo4jOperations`
  -instance as you would any other Spring Bean. By default, the instance tries to connect to
  -a Neo4j server at `localhost:7474`. The following example shows how to inject a Neo4j
  -bean:
  +To access a Neo4j server, you can inject an auto-configured `org.neo4j.ogm.session.Session`. 
  +By default, the instance tries to connect to a Neo4j server at `localhost:7687` via the Bolt 
  +protocol. The following example shows how to inject a Neo4j session:
   
   [source,java,indent=0]
   ----
   	@Component
   	public class MyBean {
   
  -		private final Neo4jTemplate neo4jTemplate;
  +		private final Session session;
   
   		@Autowired
  -		public MyBean(Neo4jTemplate neo4jTemplate) {
  -			this.neo4jTemplate = neo4jTemplate;
  +		public MyBean(Session session) {
  +			this.session = session;
   		}
   
   		// ...
  
positive.code: 
  		Page<City> findAll(Pageable pageable);
  
  		City findByNameAndCountryAllIgnoringCase(String name, String country);
  
  	}
  ----
  
negative.code: 	}
  ----
  
  You can configure the uri and credentials to use by setting the `spring.data.neo4j.*`
  properties, as shown in the following example:
  
  [source,properties,indent=0]
  ----
  	spring.data.neo4j.uri=bolt://my-server:7687
  	spring.data.neo4j.username=neo4j
  	spring.data.neo4j.password=secret
  ----
  
  You can take full control over the session creation by adding a 
  `org.neo4j.ogm.config.Configuration` `@Bean`. To completely disable the auto-configuration
  provided by the "`Starter`" , add a `@Bean` of type `org.neo4j.ogm.session.SessionFactory`.
  
  
  
  [[boot-features-connecting-to-neo4j-embedded]]
  