Tag:ssm

  • The SSM integration framework of Ajax framework to implement Ajax verification

    Time:2019-11-11

    Just learned the SSM framework, AJAX verification is successful, share below 1. Import jar package 2. Configure spring-servlet.xml <bean> <property name=”messageConverters”> <list> <ref bean=”mappingJackson2HttpMessageConverter” /> </list> </property> </bean> <bean> <property name=”supportedMediaTypes”> <list> <value>text/html;charset=UTF-8</value> <value>text/json;charset=UTF-8</value> <value>application/json;charset=UTF-8</value> </list> </property> </bean> 3. The controller uses @ ResponseBody to return JSON data format @ResponseBody @RequestMapping(value=”queryByUser”, method=RequestMethod.POST,produces=”application/json;charset=UTF-8″) public User queryByName(User […]

  • Cross domain configuration of front and back end separated SSM

    Time:2019-11-8

    Separate development at the front and back ends requires cross domain. Before that, only a configuration class is needed. The configuration of SSM is recorded below Three files need to be configured Simplecorsfilter.java implements filter public class SimpleCORSFilter implements Filter { private boolean isCross = false; @Override public void destroy() { isCross = false; } […]

  • Front-and-back split SSM configuration across domains

    Time:2019-9-15

    Separate front-end and back-end development requires cross-domain, previously only pringboot cross-domain, just need a configuration class, the following record of SSM configuration Three files need to be configured SimpleCORSFilter. Java implements Filter public class SimpleCORSFilter implements Filter { private boolean isCross = false; @Override public void destroy() { isCross = false; } @Override public void […]

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

  • Development of SpringBoot Video and Video Program Imitating Tremble (3)

    Time:2019-7-10

    SpringBoot Video and Video Program Development (1): Introduction to the project (https://segmentfault.com/a/11…SpringBoot Video and Video Program Development (2): Project Function Analysis and Implementation (https://segmentfault.com/a/11…Source code: SpringBoot dithering short video widget development full stack combat project (https://gitee.com/scau_zns/sh…)Short Video Background Management System: (https://gitee.com/scau_zns/sh… Background Management System for Small Programs The technology stack involved: Bootstrap + jQuery + […]

  • SSM: Environment Building

    Time:2019-6-23

    Construction of SSM Environment directories creating pom.xml SSM Layer by Layer Configuration I. Catalogue 1.1 Packages in the src/main/java directory (the following packages should be placed under the project package, such as: com.imooc. project name) Entity: Store entity classes Web: Store controller, equivalent to action in Struts Service: Business Logic Layer – > Create a […]

  • Method of using redis to cache query data in SSM project

    Time:2019-6-15

    In projects, it is often necessary to query the database in the persistent layer of the background program to obtain data, and then transfer the data to the service layer, the control layer, and finally to the view layer. If data access is slow, it will affect the operation of the program. In order to […]

  • Development of SpringBoot Video and Video Program Imitating Jitter (3)

    Time:2019-4-19

    SpringBoot Video Program Development (1): Project Introduction (https://segmentfault.com/a/11…SpringBoot Video and Video Program Development (2): Project Function Analysis and Implementation (https://segmentfault.com/a/11…Source code: SpringBoot dithering short video widget development full stack combat project (https://gitee.com/scau_zns/sh…)Short Video Background Management System: (https://gitee.com/scau_zns/sh… Background Management System for Small Programs The technology stack involved: Bootstrap + jQuery + jGrid + SSM framework […]