Tag:spring

  • Spring enables secondary cache instance details when integrating Hibernate

    Time:2019-10-23

    Spring enables secondary cache instance details when integrating Hibernate Write in front: 1. This example USES Hibernate3 + Spring3; 2. The query of this example USES HibernateTemplate; 1. Import ehcache-x.x.x.jar package; 2. Find the corresponding configuration information of sessionFactory in the applicationcontext. XML file and add the following code in setting hibernateProperties: <! — configure […]

  • Talk about handlerMapping and handlerAdapter design ideas in Spring MVC

    Time:2019-10-23

    Start with the most important method doDispatch source in the Spring MVC core class DispatcherServlet protected void doDispatch(HttpServletRequest request, HttpServletResponse response) throws Exception { HttpServletRequest processedRequest = request; HandlerExecutionChain mappedHandler = null; boolean multipartRequestParsed = false; WebAsyncManager asyncManager = WebAsyncUtils.getAsyncManager(request); try { ModelAndView mv = null; Exception dispatchException = null; try { processedRequest = checkMultipart(request); […]

  • For SpringMVC learning

    Time:2019-10-23

    Learning web framework based on Spring combat One, the introduction Generally, before starting to learn a knowledge point, a small test project is built to help understand the problem. Therefore, I have built a basic simulation login platform, and input the password to jump to the page. Upload code on the yards cloud https://gitee.com/lingnancfy/… . […]

  • Super detailed log configuration of springboot (based on logback)

    Time:2019-10-23

    preface There are several logging frameworks under the Java web, such as: logback, log4j, log4j2 (slj4f is not a logging framework, it is equivalent to defining the specification, the implementation of this specification logging framework can be called with slj4f). The highest performance should be logback, and springboot defaults to logback as well, so this […]

  • The arrangement of Maven configuration files in spring

    Time:2019-10-21

    Spring Maven configuration file collation Maven configuration files of spring packages <!–spring-context–> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.2.2.RELEASE</version> </dependency> <!–spring aop–> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>4.2.2.RELEASE</version> </dependency> <!– spring aspect–> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aspects</artifactId> <version>4.2.2.RELEASE</version> </dependency> <!–spring beans–> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>4.2.2.RELEASE</version> </dependency> <!–spring context support–> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>4.2.2.RELEASE</version> </dependency> <!–spring core–> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>4.2.2.RELEASE</version> </dependency> <!– […]

  • The most complete set of Java teaching video network disk sharing in 500g history

    Time:2019-10-21

    500 g java video online disk sharing (jeecg open source community)[from Java to in-depth architecture, Linux, cloud computing, distributed, big data Hadoop, IOS, Android, Internet technologies are all available]   1. Video tutorial of the separation development framework of the front and back of jeecgboot (rapid development platform)    Source download: https://github.com/zhangdaisc…Video tutorial: http://www.jeecg.org/forum.ph… 2. JPA video […]

  • The use of code generator for the rapid development of scaffolding in the background of spring boot plus

    Time:2019-10-21

    Code generation generator Spring boot plus adds param / VO and other templates based on mybatis plus Expand controller / service / mapper / XML to generate general crud / paging method Code generation template: spring boot plus / SRC / test / resources / templates Purpose Create a new table in the database to […]

  • Detailed introduction of spring AOP agent

    Time:2019-10-20

    Detailed introduction of spring AOP agent Preface: At the beginning, I still knew little about spring AOP. I met a problem these days, and I checked some spring related knowledge. I felt that I had a deeper understanding of this problem. So write it down and share it. As we know, spring supports a variety […]

  • The Savior of business code — the magic use of Java object transformation framework mapstructure

    Time:2019-10-20

    brief introduction In the development of business projects, we often need to transform Java objects, for example, from objects obtained from external micro services to business objects of the domain.domain objectWilldomain objectData persistence layerdata objectWilldomain objectConvert toDTOTo return to external callers, etc. Most of the attributes are the same during conversion, with only a few […]

  • Blocklang 0.4.0 released

    Time:2019-10-20

    Blocklang source code: https://github.com/blocklang https://gitee.com/blocklang Blocklang demo website: https://blocklang.com Like Maven in Java, npmjs in JavaScript, cargo in rust and other dependency management tools, block Lang version 0.4.0 also introduces dependency management functions. The block Lang project depends on the component warehouse registered in the component market. In the component market, we call it “component […]

  • Simple tutorial of spring boot (VI) redis integration

    Time:2019-10-20

    We rely on the database when there are too many data storage and acquisition, but when a large number of data requests appear, the database is still a little inadequate. In this article, I’ll take you to redis. First of all, let’s create a spring boot project. I won’t be long winded here. If you […]

  • 1. Single machine of Eureka Registration Center

    Time:2019-10-20

    I. Introduction Spring cloud Eureka is a service governance module under the spring cloud Netflix project. The spring cloud Netflix project is one of the subprojects of spring cloud. Its main content is the packaging of a series of open source products of Netflix company. It provides self configured Netflix OSS Integration for spring boot […]