How do you configure Neo4j clusters in a Spring Boot application?
Use a neo4j:// or neo4j+s:// routing URI so the driver finds the leader and secondaries, then mark read methods with read-only transactions.
2,882 posts about Java: questions with answers, tutorials and articles, newest first.
Use a neo4j:// or neo4j+s:// routing URI so the driver finds the leader and secondaries, then mark read methods with read-only transactions.
Use @Query on Neo4jRepository methods, projections and Neo4jClient to run parameterised Cypher queries from Spring Boot, with mapping and performance tips.
Create, read, update and delete graph nodes and relationships in Neo4j with Spring Data Neo4j, including custom Cypher queries, Neo4jClient and Testcontainers tests.
Neo4jTemplate gives programmatic CRUD and parameterised Cypher access to Neo4j in Spring Boot. Learn when to use it instead of repositories or Neo4jClient.
Connect Spring Boot to Neo4j with Spring Data Neo4j: configure Bolt, model nodes and relationships, write repositories and Cypher queries, and expose a REST API.
Index documents into Apache Solr from Spring Boot using SolrJ, since Spring Data Solr is discontinued. Covers client setup, beans, batching and commits.
Learn how create, read, update and delete work in a time-series database, with the InfluxDB 2.x Java client wired into Spring Boot as a bean.
Solr has commits and atomic updates, not full transactions. See how to use SolrJ in Spring Boot with commitWithin, rollback and version checks.
Connect Spring Boot 3 to SolrCloud using ZooKeeper and a SolrJ CloudSolrClient bean, with cluster setup, indexing and query examples.
Run Solr searches from Spring Boot using SolrJ. Build SolrQuery objects with filters, paging, edismax, facets and highlighting, and avoid common mistakes.
Spring Data Solr is discontinued, so this shows create, read, update and delete against Apache Solr in Spring Boot 3 with the SolrJ client and a small repository class.
Spring Boot logs with SLF4J and Logback by default. See how to set levels, rotate files, use profiles, add structured JSON logs and MDC context.
ResponseEntity represents a full HTTP response in Spring: status, headers and body. See how to use its builders for created, not found, downloads and caching.
Set up a DataSource with Spring Boot properties, a custom bean, HikariCP pool tuning or two databases, with working configuration examples.
@RolesAllowed restricts methods to users with given roles. Enable it with @EnableMethodSecurity(jsr250Enabled = true) and learn the ROLE_ prefix rules.
RoleHierarchy defines which Spring Security roles imply others, so an ADMIN passes USER checks. Learn setup with RoleHierarchyImpl and how to test it.
Set up RBAC in Spring Boot 3 with Spring Security 6 using roles, SecurityFilterChain rules, @EnableMethodSecurity and @PreAuthorize, with test examples.
@PostAuthorize in Spring Security evaluates an access rule after the method returns, so it can decide based on the returned object, such as ownership.
Use a SecurityFilterChain with formLogin and logout settings, then render your own login and logout forms. Includes the CSRF details that cause 403 errors.
The Thymeleaf Spring Security extras show or hide template content by login state and role. Learn the dependency, sec: attributes and the limits of template checks.