SpringBoot based return value types are supported by browsers

Overview

axios logo

maven-central

restful-return

SpringBoot based return value types are supported by browsers.

Getting Started

Dependency management tools

Below is a brief guide to using dependency management tools like Maven or Gradle.

Maven

To use maven add this dependency to your pom.xml:

<dependency>
  <groupId>io.github.xiaoxunyaogroupId>
  <artifactId>restful-returnartifactId>
  <version>0.0.3version>
dependency>

Gradle

To use Gradle add the Maven central repository to your repositories list:

mavenCentral()

Then you can just add the latest version to your build.

implementation 'io.github.xiaoxunyao:restful-return:0.0.3'

Standalone jar If you do not use any dependency management tool, you can find the latest standalone jar here.

Minimum Required JDK

axios is known to work with:

Java 1.8 and higher

Other JRE implementations may work as well, but haven't been tested.

License

Everything found in this repo is licensed under an Apache-2.0 License. See the LICENSE file

You might also like...

基于SpringCloud2.1的微服务开发脚手架,整合了spring-security-oauth2、nacos、feign、sentinel、springcloud-gateway等。服务治理方面引入elasticsearch、skywalking、springboot-admin、zipkin等,让项目开发快速进入业务开发,而不需过多时间花费在架构搭建上。持续更新中

基于SpringCloud2.1的微服务开发脚手架,整合了spring-security-oauth2、nacos、feign、sentinel、springcloud-gateway等。服务治理方面引入elasticsearch、skywalking、springboot-admin、zipkin等,让项目开发快速进入业务开发,而不需过多时间花费在架构搭建上。持续更新中

快速开始 先决条件 首先本机先要安装以下环境,建议先学习了解springboot和springcloud基础知识。 git java8 maven 开发环境搭建 linux和mac下可在项目根目录下执行 ./install.sh 快速搭建开发环境。如要了解具体的步骤,请看如下文档。 具体步骤如下:

Jan 6, 2023

springboot 框架与其它组件结合如 jpa、mybatis、websocket、security、shiro、cache等

致歉 由于自己懒以及身体对issuse 解决的不及时。请大家以后提issuse 的时候写清楚 模块名 比如“springboot-SpringSecurity4” 和问题,我会抽时间抓紧解决。 springboot-SpringSecurity0 包含两部分代码: 第一是 博客 springboot

Jan 5, 2023

lamp-cloud 基于SpringCloud(Hoxton.SR10) + SpringBoot(2.3.9.RELEASE) 的微服务快速开发平台,其中的可配置的SaaS功能尤其闪耀, 具备RBAC功能、网关统一鉴权、Xss防跨站攻击、自动代码生成、多种存储系统、分布式事务、分布式定时任务等多个模块,支持多业务系统并行开发, 支持多服务并行开发,可以作为后端服务的开发脚手架。代码简洁,注释齐全,架构清晰,非常适合学习和企业作为基础框架使用。

lamp-cloud 基于SpringCloud(Hoxton.SR10) + SpringBoot(2.3.9.RELEASE) 的微服务快速开发平台,其中的可配置的SaaS功能尤其闪耀, 具备RBAC功能、网关统一鉴权、Xss防跨站攻击、自动代码生成、多种存储系统、分布式事务、分布式定时任务等多个模块,支持多业务系统并行开发, 支持多服务并行开发,可以作为后端服务的开发脚手架。代码简洁,注释齐全,架构清晰,非常适合学习和企业作为基础框架使用。

《灯灯》中后台快速开发平台 lamp 项目名字由来 叙事版: 在一个夜黑风高的晚上,小孩吵着要出去玩,于是和程序员老婆一起带小孩出去放风,路上顺便讨论起项目要换个什么名字,在各自想出的名字都被对方一一否决后,大家陷入了沉思。 走着走着,在一盏路灯下,孩砸盯着路灯打破宁静,喊出:灯灯~ 我和媳妇愣了一

Jan 5, 2023

dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务

dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务

一个基于springboot的快速集成多数据源的启动器 简介 dynamic-datasource-spring-boot-starter 是一个基于springboot的快速集成多数据源的启动器。 其支持 Jdk 1.7+, SpringBoot 1.4.x 1.5.x 2.x.x。 文档 | D

Dec 31, 2022

SpringBoot 基础教程 | 从入门到上瘾 | 基于2.0.0.M5制作

推荐阅读本教程的三大理由: 文章内容均为原创,结合官方文档和实战经验编写。 文章结构经过细致整理,对新人学习更加友好。 精选常用技术,不求全面,但求精华!! SpringBoot 源码精读 图文教程 源码下载:《SpringBoot 基础教程-Git 》 — Hey Man,Don't forget

Dec 29, 2022

springboot SSO 单点登录,OAuth2实现,支持App登录,支持分布式

springboot SSO 单点登录,OAuth2实现,支持App登录,支持分布式

smart-sso QQ交流群:454343484 🈵 、769134727 简述 smart-sso使用当下最流行的SpringBoot技术,基于OAuth2认证授权协议,为您构建一个易理解、高可用、高扩展性的分布式单点登录应用基层。 相关文档 smart-sso单点登录(一):简介 smart

Dec 31, 2022

一个能够获取随机图片的 Api,使用 SpringBoot 构建

一个能够获取随机图片的 Api,使用 SpringBoot 构建

Random-Image-Api Random-Image-Api 一个能够获取随机图片的 Api,基于 Spring Boot 构建 可读取本地图片列表的地址,并提供随机访问服务,可配置域名白名单访问 项目说明 程序启动的时候会自动加载 项目路径/list 文件夹下的所有列表文件; 图片列表文件:

Dec 21, 2022

SpringBoot 脚手架,简化项目构建

SpringBoot 脚手架,简化项目构建

EasyRiggerInitializr | SpringBoot 脚手架,简化项目构建 作者: 小傅哥,Java Developer, ✏️ 虫洞 · 科技栈,作者, 🏆 CSDN 博客专家 本代码库是作者小傅哥多年从事一线互联网Java开发的学习历程技术汇总,旨在为大家提供一个清晰详细的学习教

Nov 20, 2022
Comments
  • chore(deps): bump spring-boot-starter-web from 2.0.0.RELEASE to 2.5.12

    chore(deps): bump spring-boot-starter-web from 2.0.0.RELEASE to 2.5.12

    Bumps spring-boot-starter-web from 2.0.0.RELEASE to 2.5.12.

    Release notes

    Sourced from spring-boot-starter-web's releases.

    v2.5.12

    :lady_beetle: Bug Fixes

    • MustacheAutoConfiguration in a Servlet web application fails with a ClassNotFoundException when Spring MVC is not on the classpath #30456

    :notebook_with_decorative_cover: Documentation

    • Javadoc of org.springframework.boot.gradle.plugin.ResolveMainClassName.setClasspath(Object) is inaccurate #30468
    • Document that @DefaultValue can be used on a record component #30460

    :hammer: Dependency Upgrades

    • Upgrade to Jackson Bom 2.12.6.20220326 #30477
    • Upgrade to Spring Framework 5.3.18 #30491

    :heart: Contributors

    We'd like to thank all the contributors who worked on this release!

    v2.5.11

    :star: New Features

    • Add EIGHTEEN to JavaVersion enum #29524

    :lady_beetle: Bug Fixes

    • Thymeleaf auto-configuration in a reactive application can fail due to duplicate templateEngine beans #30384
    • ConfigurationPropertyName#equals is not symmetric when adapt has removed trailing characters from an element #30317
    • server.tomcat.keep-alive-timeout is not applied to HTTP/2 #30267
    • Setting spring.mustache.enabled to false has no effect #30250
    • bootWar is configured eagerly #30211
    • Actuator @ReadOperation on Flux cancels request after first element emitted #30095
    • No metrics are bound for R2DBC ConnectionPools that have been wrapped #30090
    • Unnecessary allocations in Prometheus scraping endpoint #30085
    • Condition evaluation report entry for a @ConditionalOnSingleCandidate that does not match due to multiple primary beans isn't as clear as it could be #30073
    • Generated password are logged without an "unsuitable for production use" note #30061
    • Files in META-INF are not found when deploying a Gradle-built executable war to a servlet container #30026
    • spring-boot-configuration-processor fails compilation due to @DefaultValue with a long value and generates invalid metadata for byte and short properties with out-of-range default values #30020
    • Dependency management for Netty tcNative is incomplete leading to possible version conflicts #30010
    • Dependency management for Apache Kafka is incomplete #29023

    :notebook_with_decorative_cover: Documentation

    • Fix JsonSerializer example in reference guide #30329
    • Default value of spring.thymeleaf.reactive.media-types is not documented #30280
    • Add Netty in "Enable HTTP Response Compression" #30234

    ... (truncated)

    Commits
    • 35105a0 Release v2.5.12
    • 17936b8 Polish
    • 94c40c7 Upgrade to Spring Framework 5.3.18
    • 2e90fd2 Upgrade CI to Docker 20.10.14
    • 6cded5b Upgrade Java 18 version in CI image
    • 06c5e26 Upgrade to Jackson Bom 2.12.6.20220326
    • c0c32d8 Merge pull request #30456 from candrews
    • 8cb11b7 Polish "Make MustacheViewResolver bean back off without Spring MVC"
    • 7101b50 Make MustacheViewResolver bean back off without Spring MVC
    • 05b7bef Fix javadoc of ResolveMainClassName setClasspath(Object)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Configure Renovate

    Configure Renovate

    Mend Renovate

    Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

    🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.


    Detected Package Files

    • pom.xml (maven)

    Configuration

    🔡 Renovate has detected a custom config for this PR. Feel free to ask for help if you have any doubts and would like it reviewed.

    Important: Now that this branch is edited, Renovate can't rebase it from the base branch any more. If you make changes to the base branch that could impact this onboarding PR, please merge them manually.

    What to Expect

    With your current configuration, Renovate will create 17 Pull Requests:

    chore(deps): update dependency org.apache.maven.plugins:maven-release-plugin to v2.5.3
    chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v2.22.2
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-surefire-plugin-2.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-surefire-plugin to 2.22.2
    chore(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.13
    chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.2.0
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-clean-plugin-3.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-clean-plugin to 3.2.0
    chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.10.1
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-compiler-plugin-3.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-compiler-plugin to 3.10.1
    chore(deps): update dependency org.apache.maven.plugins:maven-gpg-plugin to v1.6
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-gpg-plugin-1.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-gpg-plugin to 1.6
    chore(deps): update dependency org.apache.maven.plugins:maven-jar-plugin to v3.3.0
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-jar-plugin-3.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-jar-plugin to 3.3.0
    chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.1
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-javadoc-plugin-3.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-javadoc-plugin to 3.4.1
    chore(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.1
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-project-info-reports-plugin-3.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-project-info-reports-plugin to 3.4.1
    chore(deps): update dependency org.apache.maven.plugins:maven-resources-plugin to v3.3.0
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-resources-plugin-3.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-resources-plugin to 3.3.0
    chore(deps): update dependency org.apache.maven.plugins:maven-site-plugin to v3.12.1
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-site-plugin-3.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-site-plugin to 3.12.1
    chore(deps): update dependency org.apache.maven.plugins:maven-source-plugin to v2.4
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-source-plugin-2.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-source-plugin to 2.4
    chore(deps): update spring boot to v2.7.5
    chore(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-deploy-plugin-3.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-deploy-plugin to 3.0.0
    chore(deps): update dependency org.apache.maven.plugins:maven-gpg-plugin to v3
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-gpg-plugin-3.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-gpg-plugin to 3.0.1
    chore(deps): update dependency org.apache.maven.plugins:maven-install-plugin to v3
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-install-plugin-3.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-install-plugin to 3.1.0
    chore(deps): update dependency org.apache.maven.plugins:maven-source-plugin to v3
    • Schedule: ["at any time"]
    • Branch name: renovate/org.apache.maven.plugins-maven-source-plugin-3.x
    • Merge into: main
    • Upgrade org.apache.maven.plugins:maven-source-plugin to 3.2.1

    🚸 Branch creation will be limited to maximum 2 per hour, so it doesn't swamp any CI resources or spam the project. See docs for prhourlylimit for details.


    ❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section. If you need any further assistance then you can also request help here.


    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
Owner
Elone Hoo
Try it and know if you can do it.
Elone Hoo
Free and 100% open source Progressive Java Runtime for modern Java™ deployments supported by a leading OpenJDK contributor

BellSoft Liberica JDK is a build of OpenJDK that is tested and verified to be compliant with the Java SE specification using OpenJDK Technology Compat

null 195 Dec 22, 2022
A free, simple-to-use drop-in replacement to DeluxeChat for HEX supported chat.

ChitChat A lightweight, simple-to-use chat plugin for Spigot and Paper Minecraft Servers - that supports 1.16+ hex-based styling, tooltips, click comm

Charlie Joseph 4 Dec 11, 2022
Hi, Spring fans! In this installment, we're going to look at some the C in M-V-C and their representation in Spring's `@Controller` types!

@Controllers Hi, Spring fans! In this installment, we're going to look at some the C in M-V-C and their representation in Spring's @Controller types!

Spring Tips 22 Nov 19, 2022
The Apache Commons CSV library provides a simple interface for reading and writing CSV files of various types.

Apache Commons CSV The Apache Commons CSV library provides a simple interface for reading and writing CSV files of various types. Documentation More i

The Apache Software Foundation 307 Dec 26, 2022
A command-line tool to generate different types of noise as images.

noisegen A command-line tool to generate different types of noise as images. Usage Run one of the releases, either the JAR using java -jar noisegen-0.

Tommy Ettinger 6 Jul 21, 2022
Facsimile - Copy Your Most Used Text to Clipboard Easily with Facsimile!. It Helps You to Store You Most Used Text as a Key, Value Pair and Copy it to Clipboard with a Shortcut.

Facsimile An exact copy of Your Information ! Report Bug · Request Feature Table of Contents About The Project Built With Getting Started Installation

Sri lakshmi kanthan P 1 Sep 12, 2022
A cloud-native, serverless, scalable, cheap key-value store

Sleeper Introduction Sleeper is a serverless, cloud-native, log-structured merge tree based, scalable key-value store. It is designed to allow the ing

GCHQ 21 Dec 26, 2022
SecureDB is an extension for Ai2 Appinventor and its distros which stores the data in the form of key and value just like TinyDB but in a more secure manner.

SecureDB SecureDB is an extension for Ai2 Appinventor and its distros which stores data for your app in a secure format locally on user's device. Expl

Akshat Developer 3 Sep 24, 2022
A simple and efficient short URL conversion service based on SpringBoot.

A simple and efficient short URL conversion service based on SpringBoot What is GeniusShortUrl? GeniusShortUrl is an open source reactive service that

null 2 Apr 8, 2022
A personal blog based on Vue+SpringBoot+MySql+Redis+Shiro+JWT

项目:Vue-SpringBoot-PersonalBlog 个人博客网址:http://www.huchao.vip/blogs CSDN:毛_三月 介绍 一个基于SpringBoot + Vue+MybatisPlus+Shiro+JWT+Redis开发的前后端分离博客项目,带有超级详细开发文档

Chao. Hu 26 Dec 20, 2022