JH 10 months ago
commit e684121298

@ -3,6 +3,7 @@ package com.luoo.comment;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.UnknownHostException; import java.net.UnknownHostException;
import com.spring4all.mongodb.EnableMongoPlus;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
@ -16,6 +17,7 @@ import org.springframework.core.env.Environment;
import util.IdWorker; import util.IdWorker;
@EnableMongoPlus
@SpringBootApplication @SpringBootApplication
@EnableEurekaClient @EnableEurekaClient
@EnableDiscoveryClient @EnableDiscoveryClient

@ -1,5 +1,6 @@
package com.luoo.music; package com.luoo.music;
import com.spring4all.mongodb.EnableMongoPlus;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
@ -18,6 +19,8 @@ import util.JwtUtil;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.UnknownHostException; import java.net.UnknownHostException;
@EnableMongoPlus
@SpringBootApplication @SpringBootApplication
@EnableEurekaClient @EnableEurekaClient
@EnableDiscoveryClient @EnableDiscoveryClient

@ -2,6 +2,7 @@ package com.luoo.user;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.UnknownHostException; import java.net.UnknownHostException;
import com.spring4all.mongodb.EnableMongoPlus;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
@ -15,6 +16,7 @@ import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import util.IdWorker; import util.IdWorker;
import util.JwtUtil; import util.JwtUtil;
@EnableMongoPlus
@SpringBootApplication @SpringBootApplication
@EnableEurekaClient @EnableEurekaClient
@EnableJpaAuditing @EnableJpaAuditing

Loading…
Cancel
Save