Tag:spring

  • Design and implementation of disaster recovery cache service in Ma cellular recommendation system

    Time:2019-12-9

    The database is suddenly disconnected, the third-party interface is late to return results, and the network shakes during peak hours… When the program is unexpected, our application can tell the caller or the user “sorry, there is something wrong with the server”; or find a better way to improve the user experience. Background When the […]

  • Spring 3. X upgrade spring 4 Practice

    Time:2019-12-9

    Why upgrade spring 4 The reason for upgrading spring 4 is that you want to upgrade the old project from JDK1.6 to 1.8, while the previous version of spring 4 is not compatible with jdk8. Compared with spring 3, spring 4 introduces many new features. Here are a few more important ones: Support for jdk8 […]

  • Spring boot plus v1.2.3 release, CentOS quick install environment / build / deploy / start project

    Time:2019-12-8

    Spring boot plus v1.2.3 release, CentOS quick install environment / build / deploy / start project [V1.2.3-RELEASE] 2019.09.09 Spring boot plus v1.2.3 release, CentOS quick install environment / build / deploy / start project ⭐️ New Features Project running environment installation script CentOS quick build / deploy / launch project script ⚡️ Optimization optimizationmaven-assembly-pluginProject packaging […]

  • Java | spring boot and redis realize cache and session sharing

    Time:2019-12-8

    Completion status [] under preparation [] completed [x] under maintenance original text Redis Redis is an open source, network enabled, memory based, optional persistent key value pair storage database written in ANSI C —— Wikipedia Redis is a widely used memory based key value database in the industry. It provides rich data structures, not only […]

  • Springboot2. X file upload

    Time:2019-12-8

    Configuration of POM package <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> Start item class modification /** *Prevent Tomcat connection reset when file is greater than 10m * * @return */ @Bean public TomcatServletWebServerFactory tomcatEmbedded() { TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory(); tomcat.addConnectorCustomizers((TomcatConnectorCustomizer) connector -> { if ((connector.getProtocolHandler() instanceof AbstractHttp11Protocol<?>)) { ((AbstractHttp11Protocol<?>) connector.getProtocolHandler()).setMaxSwallowSize(-1); } }); return tomcat; } Profile modification […]

  • How does springboot start?

    Time:2019-12-8

    This article is about the spring boot startup process sorted out by looking at the spring boot source code. The overall direction is to start with simplicity, not to mention too many complex things. The details of internal implementation are not covered in this article because everyone’s ideas and understanding are different. My personal understanding […]

  • Comprehensive application of Java design pattern (Advanced responsibility chain pattern)

    Time:2019-12-7

    1 existing shortcomings of the responsibility chain model Because most of the responsibility chain is impure, in this case, as long as the verification fails, it will return directly, and it will not continue to process other verification logic in the following responsibility chain. Therefore, if a part of the logic is to be composed […]

  • Getting common pose of bean from spring application context

    Time:2019-12-7

    1. Preface Generally, in spring applications, when we [email protected],@Service,@Controller,@ConfigurationOr other specific comments willBeaninjectionSpring IoC。 Then we can useSpringFramework [email protected]、JSR330Specification annotations to use theSpring IoCManagerialBean 。 2. Get the bean from the application context Today we will learn how to learn fromApplicationContextGet inBean。 Because in some cases we have to get it from the application contextBean […]

  • [the road to full stack] java basic course 7. Analysis of Ajax principles (20190617v1.0)

    Time:2019-12-6

    Welcome to java basic course Blog address: https://blog.csdn.net/houjiyuThis series of articles will mainly focus on some basic knowledge points of Java, which are summarized in ordinary times. No matter you are new to Java development rookie or senior people in the industry, you hope to bring some help to your peers. If you have any […]

  • Simple construction of spring cloud framework (service registry)

    Time:2019-12-6

    I found that many recruiters need to know spring cloud, so I am learning spring cloud recently. This spring cloud framework must be built with idea from scratch. This article uses Eureka as the component of service registration and discovery. First create a maven project with idea.Next, you need to fill in groupid and artifactid. […]

  • How to obtain method parameter name in depth analysis

    Time:2019-12-6

    Statement: This is an original article, first published on the company’s account:The way of self-study for programmers, reprint please indicate the source! discover problems A friend who has some knowledge of Java bytecode should know,When Java compiles, it discards the method parameter name by default, so we can’t get the parameter name at runtime。 But […]

  • In depth explanation of spring boot efficient data aggregation

    Time:2019-12-6

    background Interface development is the most common scenario in back-end development, which may be restful interface or RPC interface. Interface development is often to extract data from everywhere and then assemble the results, especially those partial business interfaces For example, I need to implement an interface to pull the integration data of user basic information […]