skip to Main Content

Turn on admin in config.js to view server stats – Docker

After pulling run this commands "docker run -d -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=password --name mongodb --net mongo-network mongo " for mongodb and this "docker run -d -p 8081:8081 -e ME_CONFIG_MONGODB_ADMINUSERNAME=admin -e ME_CONFIG_MONGODB_ADMINPASSWORD=password --net mongo-network --name mongo-express -e ME_CONFIG_MONGODB_SERVER=mongodb mongo-express"…

VIEW QUESTION

Using mongo and redis cache with both repositories in Spring Boot

I want to use both Redis and Mongo with repository manner (I do not want to use spring cache annotations but repository methods). I annotate the main class with the following annotations. @EnableMongoRepositories(basePackageClass = PersistencyRepository.class) @EnableRedisRepositories(basePackageClass = CacheRepository.class) @SpringBootApplication Repos…

VIEW QUESTION
Back To Top
Search