Tag:java-web

  • Some thoughts on the development of astronomical sharing platform in Colleges and Universities

    Time:2019-12-9

    This project is a school level innovation training project of the University of engineering and software institute that I applied for at the beginning of the year. The inspiration of the project comes from a member of our original Microsoft team. At first, I wanted to work together to complete the project. For some reasons, […]

  • How can Spring Boot return messages to WeChat public address?

    Time:2019-12-4

    Hello, ladies and gentlemen, today we will continue to learn how to develop WeChat public numbers through Spring Boot. For those who haven’t read the previous article, it’s suggested to read the above to help understand this article: Spring Boot developing WeChat public address background In the previous article, we have connected wechat server with […]

  • Cookies shared across domains cookies shared by secondary domain names

    Time:2019-12-3

    background Recently in SSO single sign on, the backend needs to send the token and user information to the front-end in the form of cookie after SSO login is successful. Because the project is separated from the front-end and the back-end, this involvesFront and back end cross domain cookie sharingNext, I will talk about my […]

  • Spring boot2 series of tutorials (20) spring boot integrates multiple data sources of jdbctemplate

    Time:2019-11-28

    Multi data source configuration is also a common development requirement. In spring and springboot, there are corresponding solutions to this problem. However, generally speaking, if there is a requirement for multi data source, I suggest that MYCAT, the distributed database middleware, should be preferred to solve the related problems. Before, a small partner asked questions […]

  • Spring boot2 series (21) mybatis integration

    Time:2019-11-20

    In the previous two articles, I talked with the readers about the simplest data persistence scheme in spring boot. Although it is simple, it doesn’t use much, because it’s not as convenient as mybatis. It’s a bit complicated to integrate mybatis in Spring + spring MVC. You need to configure multiple beans, which is further […]

  • Complete implementation of wechat public account batch crawling system (Java)

    Time:2019-10-27

    In order to achieve the crawling of wechat public account articles, we need to do two parts of system processing. I. automatic browsing of public account articles One is the implementation of automatic browsing of public account articles on the mobile terminal. When browsing the public account articles one by one, you will ask for […]

  • Deserialization of Subclasses in SpringBoot

    Time:2019-9-19

    target In SpringBook interface, we usually [email protected] annotations require deserialized objects, but when there are multiple subclasses, conventional deserialization cannot meet the requirements, such as: We have a class Exam to represent a test paper: @Data public class Exam { private String name; private List<Question> questions; } HereQuestionIn particular, Question itself is an abstract class, […]

  • 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 […]