资源简介

微服务springcloud 的一个简单集成,服务提供方,服务消费者。

资源截图

代码片段和文件信息

package com.cloud.provider.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cloud.provider.demo.domain.UserInfo;

@SpringBootApplication
@RestController
public class ProviderApplication {

@Value(“${spring.application.name}“)
private String applicationName;

public static void main(String[] args) {
SpringApplication.run(ProviderApplication.class args);
}

@RequestMapping(“/“)
public String home() {
return “hello aniu application name : “ + applicationName;
}

@RequestMapping(“/u

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1226  2018-08-27 16:04  provider\.classpath

     文件        268  2018-08-27 16:04  provider\.gitignore

     文件      47610  2018-08-27 16:04  provider\.mvn\wrapper\maven-wrapper.jar

     文件        110  2018-08-27 16:04  provider\.mvn\wrapper\maven-wrapper.properties

     文件       1127  2018-08-27 16:04  provider\.project

     文件        155  2018-08-27 16:04  provider\.settings\org.eclipse.core.resources.prefs

     文件        243  2018-08-27 16:04  provider\.settings\org.eclipse.jdt.core.prefs

     文件         97  2018-08-27 16:04  provider\.settings\org.eclipse.m2e.core.prefs

     文件        145  2018-08-27 16:04  provider\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件       6468  2018-08-27 16:04  provider\mvnw

     文件       4994  2018-08-27 16:04  provider\mvnw.cmd

     文件       1595  2018-08-27 17:42  provider\pom.xml

     文件        677  2018-08-27 17:17  provider\src\main\java\com\cloud\provider\demo\controller\UserController.java

     文件        819  2018-08-27 17:49  provider\src\main\java\com\cloud\provider\demo\domain\UserInfo.java

     文件        345  2018-08-27 17:17  provider\src\main\java\com\cloud\provider\demo\mapper\UserMapper.java

     文件        972  2018-08-27 17:24  provider\src\main\java\com\cloud\provider\demo\ProviderApplication.java

     文件        179  2018-08-27 17:17  provider\src\main\java\com\cloud\provider\demo\service\UserService.java

     文件        487  2018-08-27 17:17  provider\src\main\java\com\cloud\provider\demo\service\UserServiceImpl.java

     文件        298  2018-08-27 16:32  provider\src\main\resources\application.yml

     文件        342  2018-08-27 16:04  provider\src\test\java\com\cloud\provider\demo\ProviderApplicationTests.java

     文件        298  2018-09-03 09:49  provider\target\classes\application.yml

     文件       1073  2018-08-27 17:49  provider\target\classes\com\cloud\provider\demo\controller\UserController.class

     文件       1317  2018-08-27 17:49  provider\target\classes\com\cloud\provider\demo\domain\UserInfo.class

     文件        550  2018-08-27 17:49  provider\target\classes\com\cloud\provider\demo\mapper\UserMapper.class

     文件       1773  2018-08-27 17:49  provider\target\classes\com\cloud\provider\demo\ProviderApplication.class

     文件        222  2018-08-27 17:49  provider\target\classes\com\cloud\provider\demo\service\UserService.class

     文件        874  2018-08-27 17:49  provider\target\classes\com\cloud\provider\demo\service\UserServiceImpl.class

     文件        330  2018-09-03 09:49  provider\target\classes\meta-INF\MANIFEST.MF

     文件        212  2018-09-03 09:49  provider\target\classes\meta-INF\maven\com.cloud.demo\provider\pom.properties

     文件       1595  2018-09-03 09:49  provider\target\classes\meta-INF\maven\com.cloud.demo\provider\pom.xml

............此处省略152个文件信息

评论

共有 条评论