• 大小: 89KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-06
  • 语言: 数据库
  • 标签: srpingboot_m  

资源简介

Spring Boot之springboot+mysql+mybatis源码,该代码适合初学者学习,可以直接导入IDEA,如运行有其他问题,请留言。。。。

资源截图

代码片段和文件信息

package com.yangkai.controller;

import com.yangkai.entity.User;
import com.yangkai.mapper.UserMapper;
import com.yangkai.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class HelloController {

    @Autowired
    private UserService userService;

    @RequestMapping(“/hello/{name}“)
    @ResponseBody
    private  String home(@PathVariable String name) {
        System.out.println(name);

        return “Hello spring boot

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

     文件        268  2018-07-02 16:02  springboot_helloworld\.gitignore

     文件        654  2018-07-02 16:03  springboot_helloworld\.idea\compiler.xml

     文件        172  2018-07-02 16:03  springboot_helloworld\.idea\encodings.xml

     文件        568  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xml

     文件        547  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xml

     文件        486  2018-07-02 17:13  springboot_helloworld\.idea\libraries\Maven__com_alibaba_druid_1_1_0.xml

     文件        626  2018-07-02 17:13  springboot_helloworld\.idea\libraries\Maven__com_alibaba_druid_spring_boot_starter_1_1_0.xml

     文件        522  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__com_fasterxml_classmate_1_3_4.xml

     文件        644  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml

     文件        595  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_9_6.xml

     文件        623  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_9_6.xml

     文件        674  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_6.xml

     文件        688  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_6.xml

     文件        729  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_6.xml

     文件        546  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xml

     文件        700  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml

     文件        503  2018-07-02 16:18  springboot_helloworld\.idea\libraries\Maven__com_zaxxer_HikariCP_2_7_9.xml

     文件        611  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xml

     文件        611  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xml

     文件        455  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__junit_junit_4_12.xml

     文件        574  2018-07-02 16:19  springboot_helloworld\.idea\libraries\Maven__mysql_mysql_connector_java_5_1_46.xml

     文件        536  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_7_11.xml

     文件        578  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml

     文件        542  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xml

     文件        507  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__net_minidev_json_smart_2_3.xml

     文件        573  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml

     文件        608  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml

     文件        625  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml

     文件        611  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml

     文件        660  2018-07-02 16:03  springboot_helloworld\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml

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

评论

共有 条评论

相关资源