• Websocket is so simple


    Preface Today, I saw a new course of Java on mooc.com (the first experience of netsocket for getting started with netty): https://www.imooc.com/learn/941 Websocket is a technology I’ve heard a lot about that I haven’t really used. I’ve known what websocket is before, but I haven’t practiced it. When I write a listener blog, I use […]

  • Spring boot 2 startup process arrangement


    Spring boot 2 features From official website Create stand-alone Spring applications Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files) Provide opinionated ‘starter’ dependencies to simplify your build configuration Automatically configure Spring and 3rd party libraries whenever possible Provide production-ready features such as metrics, health checks and externalized configuration Absolutely no code […]

  • Spring boot2 series of tutorials (XIX) spring boot integration of jdbctemplate


    In the Java field, there are several common schemes for data persistence, including spring‘s own jdbctemplate, mybatis, and JPA. Among these schemes, the simplest one is spring’s own jdbctemplate. Although this is not as convenient as mybatis, it is much stronger than the original JDBC. It is not as powerful as mybatis, of course It […]

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


    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?


    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


    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


    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


    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)


    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


    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


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