• 大小:
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-23
  • 语言: 其他
  • 标签: Spring  Boot  Java  spring  

资源简介

深入浅出Spring Boot 2.x 图书配套源码

资源截图

代码片段和文件信息

package com.springboot.chapter1.main;

import java.util.HashMap;
import java.util.Map;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@SpringBootApplication
@Controller
public class Chapter1Main {

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

@RequestMapping(“/test“)
@ResponseBody
public Map test() {
Map map = new HashMap<>();
map.put(“key1“ “value1“);
return map;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-16 15:42  v3\
     目录           0  2018-03-21 22:58  v3\chapter17-dashboard\
     文件         512  2018-03-21 22:58  v3\chapter17-dashboard\.springBeans
     文件        4994  2018-03-21 22:58  v3\chapter17-dashboard\mvnw.cmd
     目录           0  2018-03-21 22:58  v3\chapter17-dashboard\target\
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\test-classes\
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\test-classes\com\
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\test-classes\com\springboot\
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\test-classes\com\springboot\chapter17\
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\test-classes\com\springboot\chapter17\user\
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\test-classes\com\springboot\chapter17\user\main\
     文件         700  2018-03-22 12:01  v3\chapter17-dashboard\target\test-classes\com\springboot\chapter17\user\main\Chapter17DashboardApplicationTests.class
     目录           0  2018-03-22 02:04  v3\chapter17-dashboard\target\m2e-wtp\
     目录           0  2018-03-22 02:04  v3\chapter17-dashboard\target\m2e-wtp\web-resources\
     目录           0  2018-03-22 02:04  v3\chapter17-dashboard\target\m2e-wtp\web-resources\meta-INF\
     文件         348  2018-03-22 12:01  v3\chapter17-dashboard\target\m2e-wtp\web-resources\meta-INF\MANIFEST.MF
     目录           0  2018-03-22 02:04  v3\chapter17-dashboard\target\m2e-wtp\web-resources\meta-INF\maven\
     目录           0  2018-03-22 02:04  v3\chapter17-dashboard\target\m2e-wtp\web-resources\meta-INF\maven\springboot\
     目录           0  2018-03-22 02:04  v3\chapter17-dashboard\target\m2e-wtp\web-resources\meta-INF\maven\springboot\chapter17-dashboard\
     文件        2374  2018-03-22 12:01  v3\chapter17-dashboard\target\m2e-wtp\web-resources\meta-INF\maven\springboot\chapter17-dashboard\pom.xml
     文件         251  2018-03-22 12:01  v3\chapter17-dashboard\target\m2e-wtp\web-resources\meta-INF\maven\springboot\chapter17-dashboard\pom.properties
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\classes\
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\classes\com\
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\classes\com\springboot\
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\classes\com\springboot\chapter17\
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\classes\com\springboot\chapter17\dashboard\
     目录           0  2018-03-22 12:01  v3\chapter17-dashboard\target\classes\com\springboot\chapter17\dashboard\main\
     文件         968  2018-03-22 12:01  v3\chapter17-dashboard\target\classes\com\springboot\chapter17\dashboard\main\ServletInitializer.class
     文件         874  2018-03-22 12:01  v3\chapter17-dashboard\target\classes\com\springboot\chapter17\dashboard\main\Chapter17DashboardApplication.class
     文件          59  2018-03-22 12:01  v3\chapter17-dashboard\target\classes\application.properties
     文件        2374  2018-03-22 12:01  v3\chapter17-dashboard\pom.xml
............此处省略4040个文件信息

评论

共有 条评论