Tag:java-web

  • Front-end and back-end separation of SSM configuration swagger interface documents

    Time:2019-9-14

    Springboot was previously configured, which is much simpler than ssm. Now record the configuration of SSM Adding dependencies to pom. XML Springfox wrapped the swagger so that he could support spring MVC – >. <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.6.1</version> </dependency> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>2.6.1</version> </dependency> Add the configuration class SwaggerConfig. Java @WebAppConfiguration @EnableSwagger2 @EnableWebMvc @ComponentScan(basePackages = […]

  • SpringBook Actual Warfare (XVI) | Integrating WebSocket to Realize Broadcast Messages Based on STOMP Protocol

    Time:2019-9-10

    Preface For example, today’s introduction is SpringBoot’s integration of WebSocket for broadcasting messages. What is WebSocket? WebSocket provides browsers and servers with the function of duplex asynchronous communication, that is, browsers can send information to the server, and vice versa. WebSocket achieves duplex asynchronous communication capability through a socket, but it is very tedious to […]

  • SpringBoot Actual Warfare (17) | Integrating WebSocket to Realize Chat Room

    Time:2019-9-9

    Wechat Public Number: An Excellent Abandoned Person. If you have any questions, please leave a message in the background. I won’t listen anyway. Preface Yesterday’s article introduced WebSocket broadcasting, that is, when there is a message on the server side, it sends the message to all browsers connected to the current endpoint. But this can […]

  • XML is that simple

    Time:2019-8-7

    What is XML? XML: Extensible Markup Language is called Extensible Markup Language A brief history of XML: gml->sgml->html->xml GML (Universal Markup Language) – Data Specification for Communication between Different Machines SGML (Standard Universal Markup Language) HTML (Hypertext Markup Language) Why do we need to use XML? Before we had XML, we used String as a […]

  • Summary of Java Packaging FatJar Method

    Time:2019-6-16

    Publishing a Java function in function computation (Aliyun FC) often requires packaging the function into a zip package or jar package of all-in-one. This technology of packaging all-in-one in Java is often called Fatjar technology. This article summarizes several methods of packaging FatJar in Java. What is FatJar FatJar, also known as uber-Jar, is a […]

  • SpringBoot Actual Warfare (12) | Integrating thymeleaf

    Time:2019-6-12

    Wechat Public Number: An Excellent Abandoned PersonIf you have any questions or suggestions, please leave a message in the background. I will try my best to solve your problems. Preface For example, Thymeleaf is introduced today, and a simple version of student information management system is developed by integrating Thymeleaf. SpringBook provides a large number […]

  • Enough for the introduction to AJAX

    Time:2019-6-8

    I. What is Ajax Ajax (Asynchronous JavaScript and XML) Asynchronous JavaScript and XML Ajax is actually a combination of the following technologies: (1) Standard-based representation of XHTML and CSS (2) Dynamic display and interaction of DOM (3) Data exchange and processing between XML and XSLT (4) XMLHttpRequest for asynchronous data retrieval (5) Javascript integrates the […]

  • AJAX Application [Stock Case, Verification Code Check]

    Time:2019-6-7

    I. Stock Case What we need to do is the case of stocks.It can update stock data without refresh. When the mouse moves to a specific stock, it displays specific information. Let’s first look at the results to be achieved: 1.1 Server-side Analysis First of all, from the effect map we canSee a lot of […]

  • AJAX interview questions are all here.

    Time:2019-6-6

    AJAX Common Interview Questions What is AJAX and why use Ajax AJAX is short for “Asynchronous JavaScript and XML”. He meant one.Web Page Development Technology for Creating Interactive Web Page Applications。、 The technology of asynchronous communication between client and server without refreshing the whole browser What are the differences between AJAX applications and traditional Web […]

  • How to Use Java Code to Increase Image Reflection

    Time:2019-5-29

    Effect When the reflection rate is 90%, the effect is as follows: The effect of 10% reflectivity: Realization principle The reflectivity is passed into the event handler of Reflection button as a parameter rate: CreateImage With Reflection This Java method creates a reflection image corresponding to the height to display the reflection based on the […]

  • Struts 2 Architecture and Running Process

    Time:2019-5-8

    “Struts 2 is a Web application framework based on MVC (Model View Controller) design pattern, which is essentially equivalent to a servlet. In MVC design pattern, Struts 2 acts as a controller to establish data interaction between model and view.” Let’s start with a Struts 2 Schematic diagram provided by the official Struts 2 document: […]

  • Detail the project framework on the server side

    Time:2019-4-22

    Guide reading I have always believed in this saying that the stone of his mountain can attack the jade. Learn more from others when you are not competent enough. In this way, only good for oneself, no harm. Thus, after nearly a year’s work, I have studied the framework used by the company. I wanted […]