From 6f6d4fa44b33ae086b0c5a12028a04f6d4dbfb41 Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Tue, 6 Feb 2024 20:03:31 +0800 Subject: [PATCH] Enable Mongo plus --- .../src/main/java/com/luoo/comment/CommentApplication.java | 2 ++ luoo_music/src/main/java/com/luoo/music/MusicApplication.java | 3 +++ luoo_user/src/main/java/com/luoo/user/UserApplication.java | 2 ++ 3 files changed, 7 insertions(+) diff --git a/luoo_comment/src/main/java/com/luoo/comment/CommentApplication.java b/luoo_comment/src/main/java/com/luoo/comment/CommentApplication.java index 4173604..18fc8b4 100644 --- a/luoo_comment/src/main/java/com/luoo/comment/CommentApplication.java +++ b/luoo_comment/src/main/java/com/luoo/comment/CommentApplication.java @@ -3,6 +3,7 @@ package com.luoo.comment; import java.net.InetAddress; import java.net.UnknownHostException; +import com.spring4all.mongodb.EnableMongoPlus; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; @@ -16,6 +17,7 @@ import org.springframework.core.env.Environment; import util.IdWorker; +@EnableMongoPlus @SpringBootApplication @EnableEurekaClient @EnableDiscoveryClient diff --git a/luoo_music/src/main/java/com/luoo/music/MusicApplication.java b/luoo_music/src/main/java/com/luoo/music/MusicApplication.java index 23c708f..1ee26b6 100644 --- a/luoo_music/src/main/java/com/luoo/music/MusicApplication.java +++ b/luoo_music/src/main/java/com/luoo/music/MusicApplication.java @@ -1,5 +1,6 @@ package com.luoo.music; +import com.spring4all.mongodb.EnableMongoPlus; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; @@ -18,6 +19,8 @@ import util.JwtUtil; import java.net.InetAddress; import java.net.UnknownHostException; + +@EnableMongoPlus @SpringBootApplication @EnableEurekaClient @EnableDiscoveryClient diff --git a/luoo_user/src/main/java/com/luoo/user/UserApplication.java b/luoo_user/src/main/java/com/luoo/user/UserApplication.java index 65c07ee..1323cf9 100644 --- a/luoo_user/src/main/java/com/luoo/user/UserApplication.java +++ b/luoo_user/src/main/java/com/luoo/user/UserApplication.java @@ -2,6 +2,7 @@ package com.luoo.user; import java.net.InetAddress; import java.net.UnknownHostException; +import com.spring4all.mongodb.EnableMongoPlus; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; @@ -15,6 +16,7 @@ import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import util.IdWorker; import util.JwtUtil; +@EnableMongoPlus @SpringBootApplication @EnableEurekaClient @EnableJpaAuditing