The use of websocket in spring boot + Vue
1. An Implementation of websocket in springboot
In the java background, websocket is configured as a server-side configuration, which is as follows
@Configuration
public class WebSocketConfig {
@Bean(name="serverEndpointExporter")
public ServerEndpointExporter getServerEndpointExporterBean(){
return new ServerEndpo ...
Posted by The Wise One on Mon, 30 Sep 2019 16:40:52 -0700
SpringBoot Integrated Spring Security Getting Started Experience
1. Preface
Both Spring Security and Apache Shiro are security frameworks that provide authentication and authorization for Java applications.
The difference between them
Spring Security: Heavy Safety Framework
Apache Shiro: Lightweight Security Framework
Refer to another article in the subtitle on shiro's authorization and certification: Spri ...
Posted by Plxply on Sun, 29 Sep 2019 23:50:21 -0700
Spring Cloud Tutorial Part 1: Eureka
1. Introduction to spring cloud
Spring cloud provides developers with tools to quickly build distributed systems, including configuration management, service discovery, circuit breakers, routing, micro-agents, event bus, global locks, decision campaigns, distributed sessions, and so on.It runs in a simple environment and can run on a developer ...
Posted by curioadmin on Tue, 24 Sep 2019 18:52:16 -0700
What exactly is SpringApplication run ning?
In the last article What exactly did SpringApplication run (top) In this article, we continue by analyzing the first half of the run method below.
public ConfigurableApplicationContext run(String... args) {
//. . .
//Continue above
configureIgnoreBeanInfo(environment);
Banner printedBanner = ...
Posted by DedMousie on Tue, 24 Sep 2019 10:06:20 -0700
Spring Boot 2 is configured using Servlet, Listener, and Filter
Development Environment: IntelliJ IDEA 2019.2.2Spring Boot Version: 2.1.8
Create a new SpringBoot project named demo.
1. Configuring with Servlet s
1. Modify the code for the startup class DemoApplication.cs and add the annotation ServletComponentScan, which scans for Servlet components, including using @WebServlet,
Classes decorated with @ ...
Posted by Awanka on Tue, 24 Sep 2019 09:59:45 -0700
Spring Boot Tutorial Part 1: Building Spring Boot Project
brief introduction
spring boot is designed to simplify development and open up various automatic assembly. You don't want to write various configuration files, but you can quickly build a web project by introducing related dependencies. It takes a production-ready application perspective and takes precedence over configuration conventions.
...
Posted by DRTechie on Tue, 24 Sep 2019 05:50:52 -0700
mall-tiny: A framework for single-application projects based on SpringBoot+MyBatis
SpringBoot e-commerce project mall (20k+star) address: https://github.com/macrozheng/mall
abstract
mall-tiny is the project skeleton extracted from mall project, maintains the entire technology stack of mall project, simplifies the business logic, retains only permissions and commodity core tables, facilitates development and use, and allows f ...
Posted by knashash on Mon, 23 Sep 2019 19:07:54 -0700
What exactly is SpringApplication run ning?
In the previous article: SpringBoot Source Parsing: Create a SpringApplication Object Instance In this article, we will continue to look at the execution logic of the run method.
public ConfigurableApplicationContext run(String... args) {
StopWatch stopWatch = new StopWatch();
stopWatch.start();
ConfigurableApplica ...
Posted by akuji36 on Mon, 23 Sep 2019 09:45:50 -0700
Tool classes and methods commonly used in Hutool
SpringBoot e-commerce project mall (20k+star) address: https://github.com/macrozheng/mall
abstract
Hutool is a Java toolkit that helps us simplify every line of code and avoid duplicating wheels. If you need to use some tools and methods, you might as well look in Hutool, it may be. This article will introduce the common tools and methods in H ...
Posted by damdempsel on Sun, 22 Sep 2019 04:19:54 -0700
Global Handling Exception Encapsulation for springboot
brief introduction
System exceptions, such as NullPointerException, are common in projects.If the default is not handled, springboot will respond to the default error prompt, which is not friendly to the user experience, system-level errors that the user cannot perceive, even if the error is 500, you can prompt the user with a friendly prompt s ...
Posted by NewPHP_Coder on Sat, 21 Sep 2019 19:51:56 -0700