Giter VIP home page Giter VIP logo

springboot-study's Introduction

springboot-study

springboot

实现了 SpringBoot + MyBatis 搭建的小程序。areadisplay 中包含了小程序所需要的代码,t_area.sql 是数据库导出的结构文件,src 目录下为主要的后端代码。

springboot-error

Spring Boot 异常与错误处理的(404、500...) demo。Spring Boot可以根据 HTTP 的请求头(accept)信息,判断客户端想要什么类型的返回数据(HTML OR JSON),可以在 BasicErrorController 类中查看。

在有模板引擎的情况下,Spring Boot 底层会扫描 templates/error/×××.html 页面,根据 HTTP 的响应码找到对应的错误提示页面,在该页面下也可以通过表达式获取一些错误提示信息。如果没有配置模板引擎,则扫描 static/error/×××.html 页面。

这个 demo 对异常与错误进行了整合,当出现异常与 404 错误时,用浏览器访问会跳转到 templates/error/404.html 页面,其他客户端访问时会返回内置与自定义的 JSON 数据。

springboot-jsp

Spring Boot 整合 JSP 开发的 demo,基于 Spring Boot2.0 以上版本,使用本地 tomcat 容器。需要注意的是,本地 tomcat 容器版本必须支持 Spring Boot 的版本,否则启动 tomcat 时会报错。

demo 基于 Spring Boot2.03、Tomcat-8.5.31

springboot-mybatis

整合了基于注解与配置文件两种方式的 demo,使用阿里开源的数据源 druid,并配置了监控中心。

springboot-cors

Spring Boot 在服务端解决 AJAX 跨域问题的 demo。

springboot-study's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.