All the tutorial videos are available on Saggu.uk YouTube channel.
mvn spring-boot:run -DskipTests -Dspring-boot.run.profiles={Profile-Name}
e.g. For Dev
mvn spring-boot:run -DskipTests -Dspring-boot.run.profiles={Profile-Name}
e.g. Different Port
mvn spring-boot:run -Dspring-boot.run.arguments=--server.port=8080
mvn spring-boot:run -Dspring-boot.run.arguments=--server.port=8090
or
mvn clean install -DskipTests
java -jar target/springboot-tutorial-0.0.1-SNAPSHOT.jar --server.port=8080 --management.server.port=9090
Note: Just enable one cache provider
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>${cache.version}</version>
</dependency>
Add the following:
spring:
cache:
redis:
time-to-live: 100S
type: redis
- docker pull redis
- docker run --name saggu.uk -p 6379:6379 -d redis
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-all</artifactId>
<version>4.2.4</version>
</dependency>
hazelcast:
network:
join:
multicast:
enabled: true