What is the role of the FlashMap class in Spring MVC?
FlashMap carries flash attributes across a redirect in Spring MVC, so one-time messages survive the Post/Redirect/Get cycle and then disappear.
2,882 posts about Java: questions with answers, tutorials and articles, newest first.
FlashMap carries flash attributes across a redirect in Spring MVC, so one-time messages survive the Post/Redirect/Get cycle and then disappear.
Flash attributes carry a message or object across one redirect and then disappear. Learn how to use RedirectAttributes, display them and avoid common pitfalls.
WebSocketStompClient is Spring's Java client for STOMP over WebSocket. See how to connect with connectAsync, subscribe, send messages and handle errors.
Unit-test handlers and message controllers with Mockito, then verify the handshake, converters and broker with a few STOMP integration tests.
SolrTemplate wrapped a SolrClient for indexing and querying in Spring Data Solr. That project is discontinued, so this explains its role and the SolrJ replacement.
Spring Data Solr is retired, so Spring Boot 3 apps use SolrJ directly. Set up a SolrClient bean, index documents, and run filtered, paged full-text queries.
Index data in Elasticsearch from Spring Boot using @Document entities, IndexOperations, repositories and bulk requests, with the current Java client stack.
Elasticsearch has no commit or rollback. Use idempotent writes, per-item bulk checks, optimistic locking and an outbox to stay consistent in Spring Boot.
Connect Spring Boot to a multi-node Elasticsearch cluster with HTTP URIs, authentication, SSL bundles and an Actuator health check.
Run Elasticsearch queries from Spring Boot using repository methods, CriteriaQuery and NativeQuery, with paging, filters and scores on the current client.
ElasticsearchTemplate runs index and search operations in Spring Data Elasticsearch. Learn how it changed across versions and why to inject ElasticsearchOperations.
Connect Spring Boot to Elasticsearch with spring.elasticsearch.uris, map documents with @Document and @Field, and run repository or NativeQuery full-text searches.
Spring Data Cassandra has no transaction manager. Use lightweight transactions, small logged batches and idempotent patterns instead of @Transactional.
Set contact points, local datacenter and keyspace in application.yml and let Spring Boot build a CqlSession with automatic failover, using driver 4.x.
Learn three ways to run Cassandra CQL in Spring Boot: @Query on repositories, CassandraTemplate with Criteria, and raw CqlTemplate statements.
Set up Spring Data Cassandra, map a table, and run create, read, update and delete with CassandraRepository or CassandraTemplate, including lightweight transactions.
CassandraTemplate maps entities to Cassandra tables and runs CRUD, queries, TTL writes and batches. See setup and examples in Spring Boot.
Configure Spring Data Cassandra with the spring.cassandra properties, map tables with @Table and primary keys, and run CRUD through a repository.
Use @Transactional with Spring Data Couchbase or the SDK transactions API to commit or roll back several documents together in Spring Boot 3.
Connect Spring Boot 3 to a multi-node Couchbase cluster with a connection string, credentials, TLS and repositories using current Spring Data Couchbase.