Posted on March 14, 2026 Leave a Comment
Scenario: You are lazy and don’t want to create an @Entity class and just want to query a few columns.
Posted on March 10, 2026 1 Comment
Configure EhCache Cache Manager EhCache Configuration Cache Customer Service ~ Cached and CacheEvict
Posted on March 1, 2026 Leave a Comment
@ActiveProfiles for Junit AnnotationConfigApplicationContext setActiveProfiles to active profile Maven run test for active profile
Posted on March 1, 2026 Leave a Comment
Embeddable Entity Embeddable Id as @Id
Posted on February 21, 2026 Leave a Comment
If you are using @Value with @PropertySource create a PropertySourcesPlaceholderConfigurer Bean which resolves ${…} placeholders within @Value annotations against the current Spring Environment and its set of PropertySources.
Posted on January 25, 2026 Leave a Comment
You can define two EntityManagers in one class: 1. Provide a name for your EntityManager Beans 2. Provide a persistentUnitName and make sure it is unique. As the entityManager injects by name into the transaction manager make sure you entitymanager bean name is same as your transaction manager parameter. In this case my entitytManager bean […]
Posted on January 11, 2026 Leave a Comment
1. Setup Heroku RedisConnectionFactory Configuration 2. Setup RedisTemplate Configuration 3. Setup Redis Service 4. Setup Redis Controller 1. Setup Heroku RedisConnectionFactory Configuration 2. Setup RedisTemplate Configuration 3. Setup Redis Service 4. Setup Redis Controller
Posted on December 14, 2025 3 Comments
Below is the steps to create a Spring MVC application with MongoDB 1. Create MongoDB Entity 2. Define MongoDB DataSource 3. Define MongoDBTemplate 4. Create MongoDB Repository interface 5. Implement MongoDB Repository interface 6. Define your MongoDB Controller 7. Test MongoDB DataSource 8. Test MongoDBTemplate 9. Test MongoDB Repository Create MongoDB Entity Define MongoDB DataSource […]
Posted on November 6, 2025 Leave a Comment
Spring Configuration to test integration to Salesforce using PartnerConnection, EnterpriseConnection and BulkConnection. Create a properties file called salesforcesync.properties with all the login details salesforcesync.properties Salesforce Authentication Spring Configuration Junit test class to assert login was successful