Browse Source

优化feign集成

test
smallchill 6 years ago
parent
commit
60406a67c8
  1. 4
      blade-auth/src/main/java/org/springblade/auth/AuthApplication.java
  2. 4
      blade-ops/blade-develop/src/main/java/org/springblade/develop/DevelopApplication.java
  3. 4
      blade-service/blade-desk/src/main/java/org/springblade/desk/DeskApplication.java
  4. 4
      blade-service/blade-log/src/main/java/org/springblade/core/log/LogApplication.java
  5. 4
      blade-service/blade-system/src/main/java/org/springblade/system/SystemApplication.java
  6. 4
      blade-service/blade-user/src/main/java/org/springblade/system/user/UserApplication.java

4
blade-auth/src/main/java/org/springblade/auth/AuthApplication.java

@ -17,18 +17,18 @@
package org.springblade.auth; package org.springblade.auth;
import org.springblade.core.cloud.feign.EnableBladeFeign;
import org.springblade.core.launch.BladeApplication; import org.springblade.core.launch.BladeApplication;
import org.springblade.core.launch.constant.AppConstant; import org.springblade.core.launch.constant.AppConstant;
import org.springframework.cloud.client.SpringCloudApplication; import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
/** /**
* 用户认证服务器 * 用户认证服务器
* *
* @author Chill * @author Chill
*/ */
@EnableBladeFeign
@SpringCloudApplication @SpringCloudApplication
@EnableFeignClients(AppConstant.BASE_PACKAGES)
public class AuthApplication { public class AuthApplication {
public static void main(String[] args) { public static void main(String[] args) {

4
blade-ops/blade-develop/src/main/java/org/springblade/develop/DevelopApplication.java

@ -16,18 +16,18 @@
*/ */
package org.springblade.develop; package org.springblade.develop;
import org.springblade.core.cloud.feign.EnableBladeFeign;
import org.springblade.core.launch.BladeApplication; import org.springblade.core.launch.BladeApplication;
import org.springblade.core.launch.constant.AppConstant; import org.springblade.core.launch.constant.AppConstant;
import org.springframework.cloud.client.SpringCloudApplication; import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
/** /**
* Develop启动器 * Develop启动器
* *
* @author Chill * @author Chill
*/ */
@EnableBladeFeign
@SpringCloudApplication @SpringCloudApplication
@EnableFeignClients(AppConstant.BASE_PACKAGES)
public class DevelopApplication { public class DevelopApplication {
public static void main(String[] args) { public static void main(String[] args) {

4
blade-service/blade-desk/src/main/java/org/springblade/desk/DeskApplication.java

@ -16,18 +16,18 @@
*/ */
package org.springblade.desk; package org.springblade.desk;
import org.springblade.core.cloud.feign.EnableBladeFeign;
import org.springblade.core.launch.BladeApplication; import org.springblade.core.launch.BladeApplication;
import org.springblade.core.launch.constant.AppConstant; import org.springblade.core.launch.constant.AppConstant;
import org.springframework.cloud.client.SpringCloudApplication; import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
/** /**
* Desk启动器 * Desk启动器
* *
* @author Chill * @author Chill
*/ */
@EnableBladeFeign
@SpringCloudApplication @SpringCloudApplication
@EnableFeignClients(AppConstant.BASE_PACKAGES)
public class DeskApplication { public class DeskApplication {
public static void main(String[] args) { public static void main(String[] args) {

4
blade-service/blade-log/src/main/java/org/springblade/core/log/LogApplication.java

@ -16,18 +16,18 @@
*/ */
package org.springblade.core.log; package org.springblade.core.log;
import org.springblade.core.cloud.feign.EnableBladeFeign;
import org.springblade.core.launch.BladeApplication; import org.springblade.core.launch.BladeApplication;
import org.springblade.core.launch.constant.AppConstant; import org.springblade.core.launch.constant.AppConstant;
import org.springframework.cloud.client.SpringCloudApplication; import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
/** /**
* 日志服务 * 日志服务
* *
* @author Chill * @author Chill
*/ */
@EnableBladeFeign
@SpringCloudApplication @SpringCloudApplication
@EnableFeignClients(AppConstant.BASE_PACKAGES)
public class LogApplication { public class LogApplication {
public static void main(String[] args) { public static void main(String[] args) {

4
blade-service/blade-system/src/main/java/org/springblade/system/SystemApplication.java

@ -16,17 +16,17 @@
*/ */
package org.springblade.system; package org.springblade.system;
import org.springblade.core.cloud.feign.EnableBladeFeign;
import org.springblade.core.launch.BladeApplication; import org.springblade.core.launch.BladeApplication;
import org.springblade.core.launch.constant.AppConstant; import org.springblade.core.launch.constant.AppConstant;
import org.springframework.cloud.client.SpringCloudApplication; import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
/** /**
* 系统模块启动器 * 系统模块启动器
* @author Chill * @author Chill
*/ */
@EnableBladeFeign
@SpringCloudApplication @SpringCloudApplication
@EnableFeignClients(AppConstant.BASE_PACKAGES)
public class SystemApplication { public class SystemApplication {
public static void main(String[] args) { public static void main(String[] args) {

4
blade-service/blade-user/src/main/java/org/springblade/system/user/UserApplication.java

@ -16,18 +16,18 @@
*/ */
package org.springblade.system.user; package org.springblade.system.user;
import org.springblade.core.cloud.feign.EnableBladeFeign;
import org.springblade.core.launch.BladeApplication; import org.springblade.core.launch.BladeApplication;
import org.springblade.core.launch.constant.AppConstant; import org.springblade.core.launch.constant.AppConstant;
import org.springframework.cloud.client.SpringCloudApplication; import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
/** /**
* 用户启动器 * 用户启动器
* *
* @author Chill * @author Chill
*/ */
@EnableBladeFeign
@SpringCloudApplication @SpringCloudApplication
@EnableFeignClients(AppConstant.BASE_PACKAGES)
public class UserApplication { public class UserApplication {
public static void main(String[] args) { public static void main(String[] args) {

Loading…
Cancel
Save