package com.example.demo.controller;
import com.example.demo.model.User;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;
import java.util.Map;
@Controller
@RequestMapping("/test")
public class TestController {
@Autowired
private UserService userService;
@RequestMapping("/toTest")
public String toTest(){
return "index";
}
@ResponseBody
@RequestMapping("/findAll")
public List<User> findALL(){
return userService.findAll();
}
@ResponseBody
@RequestMapping("/getPage")
public Map<String,Object> getPage(@RequestParam(value = "limit", required = true) Integer limit,
@RequestParam(value = "offset", required = true) Integer offset){
return userService.getPage(limit,offset);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
bootstrap-table相关资源与开发详解(springboot+mybatis环境下),以及Demo下载,想了解的朋友,可以先查看本文资料:https://blog.csdn.net/qq_28582847/article/details/79961270
资源推荐
资源详情
资源评论
收起资源包目录
bootstrap-table相关资源与开发详解(springboot+mybatis环境下)Demo下载 (114个子文件)
UserService.class 2KB
TestController.class 2KB
User.class 1KB
SpringbootMybatisApplication.class 742B
UserMapper.class 673B
SpringbootMybatisApplicationTests.class 661B
mvnw.cmd 5KB
bootstrap.min.css 128KB
bootstrap.min.css 128KB
bootstrap-table.css 7KB
bootstrap-table.css 7KB
.gitignore 268B
index.html 3KB
index.html 3KB
springbootMybatis.iml 9KB
demo.iml 9KB
maven-wrapper.jar 46KB
TestController.java 1KB
UserService.java 988B
User.java 965B
SpringbootMybatisApplication.java 379B
SpringbootMybatisApplicationTests.java 344B
UserMapper.java 344B
bootstrap-table.min.js 52KB
bootstrap-table.min.js 52KB
bootstrap-table-zh-CN.min.js 951B
bootstrap-table-zh-CN.min.js 951B
mvnw 6KB
.name 4B
application.properties 334B
application.properties 334B
maven-wrapper.properties 110B
user.sql 1KB
workspace.xml 62KB
pom.xml 2KB
UserMapper.xml 882B
UserMapper.xml 882B
Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_1_RELEASE.xml 769B
Maven__org_springframework_boot_spring_boot_starter_thymeleaf_2_0_1_RELEASE.xml 762B
Maven__org_springframework_boot_spring_boot_starter_logging_2_0_1_RELEASE.xml 748B
Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_1_RELEASE.xml 741B
Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_1_RELEASE.xml 734B
Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_1_3_2.xml 730B
Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_5.xml 729B
Maven__org_springframework_boot_spring_boot_starter_jdbc_2_0_1_RELEASE.xml 727B
Maven__org_springframework_boot_spring_boot_starter_json_2_0_1_RELEASE.xml 727B
Maven__org_springframework_boot_spring_boot_starter_test_2_0_1_RELEASE.xml 727B
Maven__org_thymeleaf_extras_thymeleaf_extras_java8time_3_0_1_RELEASE.xml 725B
Maven__org_springframework_boot_spring_boot_starter_web_2_0_1_RELEASE.xml 720B
Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml 700B
Maven__org_springframework_boot_spring_boot_starter_2_0_1_RELEASE.xml 692B
Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_1_3_2.xml 688B
Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_5.xml 688B
Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_5.xml 674B
Maven__org_hibernate_validator_hibernate_validator_6_0_9_Final.xml 674B
Maven__org_springframework_boot_spring_boot_test_2_0_1_RELEASE.xml 671B
Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_29.xml 660B
Maven__org_springframework_spring_expression_5_0_5_RELEASE.xml 658B
Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml 644B
Maven__org_springframework_spring_context_5_0_5_RELEASE.xml 637B
Maven__org_springframework_boot_spring_boot_2_0_1_RELEASE.xml 636B
Maven__org_thymeleaf_thymeleaf_spring5_3_0_9_RELEASE.xml 634B
Maven__org_springframework_spring_webmvc_5_0_5_RELEASE.xml 630B
Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_29.xml 625B
Maven__org_springframework_spring_beans_5_0_5_RELEASE.xml 623B
Maven__com_fasterxml_jackson_core_jackson_databind_2_9_5.xml 623B
compiler.xml 620B
Maven__org_springframework_spring_jdbc_5_0_5_RELEASE.xml 616B
Maven__org_springframework_spring_test_5_0_5_RELEASE.xml 616B
Maven__org_springframework_spring_core_5_0_5_RELEASE.xml 616B
Maven__javax_annotation_javax_annotation_api_1_3_2.xml 611B
Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_29.xml 611B
Maven__javax_validation_validation_api_2_0_1_Final.xml 611B
Maven__org_springframework_spring_web_5_0_5_RELEASE.xml 609B
Maven__org_springframework_spring_jcl_5_0_5_RELEASE.xml 609B
Maven__org_springframework_spring_aop_5_0_5_RELEASE.xml 609B
Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml 608B
Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml 608B
Maven__org_springframework_spring_tx_5_0_5_RELEASE.xml 602B
Maven__com_fasterxml_jackson_core_jackson_core_2_9_5.xml 595B
Maven__org_attoparser_attoparser_2_0_4_RELEASE.xml 589B
Maven__org_thymeleaf_thymeleaf_3_0_9_RELEASE.xml 578B
Maven__org_unbescape_unbescape_1_1_5_RELEASE.xml 578B
Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml 578B
mybatis-config.xml 576B
mybatis-config.xml 576B
Maven__mysql_mysql_connector_java_5_1_46.xml 574B
Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml 573B
Maven__ch_qos_logback_logback_classic_1_2_3.xml 568B
Maven__org_hamcrest_hamcrest_library_1_3.xml 553B
Maven__org_mybatis_mybatis_spring_1_3_2.xml 549B
Maven__ch_qos_logback_logback_core_1_2_3.xml 547B
Maven__com_jayway_jsonpath_json_path_2_4_0.xml 546B
Maven__org_mockito_mockito_core_2_15_0.xml 542B
Maven__net_minidev_accessors_smart_1_2.xml 542B
Maven__org_skyscreamer_jsonassert_1_5_0.xml 537B
Maven__net_bytebuddy_byte_buddy_1_7_11.xml 536B
Maven__org_xmlunit_xmlunit_core_2_5_1.xml 535B
Maven__org_assertj_assertj_core_3_9_1.xml 535B
Maven__org_slf4j_jul_to_slf4j_1_7_25.xml 534B
共 114 条
- 1
- 2
资源评论
Huan_能欢
- 粉丝: 19
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功