Spring Boot non intrusively implements the RESTful API interface and returns in JSON format

preface At present, we basically choose front-end and back-end separation for large and medium-sized projects. Front-end and back-end separation has become a trend, so always. We need to agree on a unified api interface with the front end to return json format, In this way, we need to encapsulate a unified general global template api return f ...

Posted by BMorganVA on Wed, 26 Jan 2022 15:12:41 +0100

JAVA springboot+JasperReports+spring-data-JPA demo

Recently, I made a function about exporting PDF, so I wrote a blog to record it. 1. Preparation. The development tools I use are eclipse and TIBCO Jaspersoft studio 6.17.0 Needless to say, eclipse software is mainly TIBCO Jaspersoft studio 6.17.0, which is used to draw newspaper report templates Software download address: Click me to jump Sk ...

Posted by ctsiow on Wed, 26 Jan 2022 12:29:08 +0100

Interface permission control (springboot)

Principle: first, call login, and a token will be passed to the front end. Later interfaces need to use this token. The front end needs to put the token into the request header and pass it when calling the interface. After the back end obtains the token, compare the obtained token with that in the database. If it is the same, it means that it h ...

Posted by Develop_Sake on Wed, 26 Jan 2022 03:15:03 +0100

WebSocket notes + SpringBoot integration

WebSocket notes Websocket: HTML5 WebSocket is designed to replace polling and long connection, so that the client browser has the instant messaging capability of desktop system under C/S framework, and realizes full duplex communication between browser and server. It is based on TCP. Although websocket transmits data through TCP like HTTP, ...

Posted by vfwood on Tue, 25 Jan 2022 07:17:26 +0100

Section 4: web template data rendering display in SpringBoot

In the first section, we demonstrate that the data is returned through the interface, and the data is not rendered and displayed on the page. Here we demonstrate a project case where the data returned from the background is rendered to the front page template engine SpringBoot renders page results through a template engine. The template ...

Posted by satant on Tue, 25 Jan 2022 07:11:05 +0100

Cross domain resource sharing of CORS with Spring Boot

CORS is a W3C standard, whose full name is called "cross origin resource sharing"; Before introducing CORS in detail, first briefly introduce what is the homology policy, so as to understand the origin and necessity of CORS. Browser homology policy "Homology policy" is the cornerstone of browser security. At present, all b ...

Posted by pornophobic on Tue, 25 Jan 2022 01:19:46 +0100

shiro and Spring Boot integration (learning notes)

What is Shiro Official website: http://shiro.apache.org/ It is a mainstream Java security framework that does not rely on any container and can run in Java SE and Java EE Projects. Its main function is to authenticate, authorize, session management, encryption and other operations for users accessing the system. Shiro is a systematic framewo ...

Posted by cypher235 on Mon, 24 Jan 2022 22:41:11 +0100

The simplest method of k8s is to deploy the image from the local cluster (4. Deploy the springboot project for k8s)

prepare First, prepare the simplest demo and a rest interface. Our goal is to deploy this demo to the k8s cluster and access it. The port exposed here is 8080 Run the jar package locally Local access Image packaging First upload the jar package to a folder on the master Write Dockerfile #create a file vim Dockerfile ##conte ...

Posted by EXiT on Mon, 24 Jan 2022 20:13:40 +0100

How to gracefully implement the addition, deletion, modification and query of Mysql? After reading it, you will

Then, in the previous period, the data was queried without writing an sql in the previous period. What if you want to save or update the data? Can you write your own sql? Save data @GetMapping("save")//Save data public void save(@RequestBody User user){ userJpa.save(user); } Add the above method in UserController. Using @RequestBody ...

Posted by robin105 on Mon, 24 Jan 2022 14:35:41 +0100

Java project: design and implementation of luggage deposit management system in scenic spot (java+ssm+springboot)

Main technical implementation: spring, springmvc, springboot, springboot security permission control, mybatis, session, jquery, md5, bootstart JS, tomcat, interceptor, etc. Main functions: login, user management, role authority management, menu management, department management, luggage cabinet management, user deposit management, record que ...

Posted by MoombaDS on Mon, 24 Jan 2022 11:09:02 +0100