Tag:springboot

  • Springboot integration httpclient code example

    Time:2021-7-31

    This article mainly introduces the spring boot integration httpclient code example. The example code is introduced in great detail, which has a certain reference value for everyone’s study or work. Friends in need can refer to it Create httpclientconfig configuration class @Configuration @PropertySource(value=”classpath:/properties/httpClient.properties”) public class HttpClientConfig { @Value(“${http.maxTotal}”) private Integer maxTotal; // maximum connection @Value(“${http.defaultMaxPerRoute}”) […]

  • Springboot feignclient annotation and parameters

    Time:2021-7-26

    1、 Feignclient annotation Feignclient annotation is modified by @ target (ElementType. Type), indicating that the function target of feignclient annotation is on the interface @FeignClient(name = “github-client”, url = “https://api.github.com”, configuration = GitHubExampleConfig.class) public interface GitHubClient { @RequestMapping(value = “/search/repositories”, method = RequestMethod.GET) String searchRepo(@RequestParam(“q”) String queryStr); } After the interface is declared, it can […]

  • Implementation of request background data display pie chart with springboot + ecarts

    Time:2021-7-5

    scene Springboot builds the background to obtain data, and the front-end visualizes the pie chart of ecarts. Ecarts3 website Get ecarts Select the version you need to download from the download interface of the official website. According to the developer’s functional and volume requirements, we provide different packaged downloads. If you have no volume requirements, […]

  • Springboot dynamically loads the histogram of ecarts

    Time:2021-6-30

    In this paper, we share the specific code of springboot dynamic loading ecarts histogram for your reference. The specific content is as follows The first time to write a blog, no more nonsense, directly on the code Background code @RequestMapping(“/rcbchart”) @ResponseBody private String dwcb(@RequestParam(“scrq1”) String scrq1,@RequestParam(“scrq2”) String scrq2, @RequestParam(“dwmc”) String dwmc) throws ParseException { List […]

  • Realization of visualization by springboot + ecarts

    Time:2021-6-29

    Now in the end of the design, do an e-commerce platform log analysis system, need to combine visualization, to achieve an intuitive effect 1. Build spring boot project and Maven project, which is the overall structure of the project 2. Background code: @RestController @RequestMapping(“/wanglk_bds”) public class VisualController { @Autowired private VisualInterface visualInterface; /** *Number of […]

  • Integration of thymeleaf code instance with springboot 2.1.7

    Time:2021-6-20

    This article mainly introduces the spring boot 2.1.7 integration of thymeleaf code example, the article through the example code is very detailed, for everyone’s study or work has a certain reference learning value, need friends can refer to 1. Add thymeleaf dependency in POM <!–thymeleaf–> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <!– When using the thymeleaf template […]

  • Operation example of adding filter method in springboot

    Time:2021-6-9

    This paper describes the operation of adding filter method in springboot with an example. The details are as follows: When accessing the server, we need to control whether the user allows permission or not. At this time, we can use the filter. The method to configure the filter in springboot is as follows: Write filter […]

  • Analysis of file upload steps based on springboot

    Time:2021-6-4

    This article mainly introduces the spring boot file upload steps analysis, the article through the example code is very detailed, for everyone’s study or work has a certain reference learning value, need friends can refer to The first step is to write the front page of upload <div> <button type=”button” ng-click=”openAddModal()” data-toggle=”modal” data-target=”#documentOprModal” style=”margin-left: 10px;float:left”> […]

  • Spring boot JTA atomikos for distributed object management

    Time:2021-6-2

    This article mainly introduces the spring boot JTA atomikos implementation of distributed things management, this article through the example code is very detailed, for everyone’s study or work has a certain reference learning value, need friends can refer to When a project is connected to multiple databases, transaction problems may occur, that is, it is […]

  • The use of @ value in springboot

    Time:2021-5-30

    Springboot injects the attributes in the configuration file into the components in the container through @ value annotation (it can be used in @ controller, @ service, @ configuration, @ component and other spring managed classes) 1. Ordinary string injection Example: there is a key in YML name: zs @Value injection @Value(“${name}”) public String name; […]

  • Example of fastdfs procedure code integrated with springboot

    Time:2021-5-10

    This article mainly introduces the spring boot integration fastdfs process code example, the article through the example code introduction is very detailed, for everyone’s study or work has a certain reference learning value, need friends can refer to Pom.xml introduces dependency <dependency> <groupId>com.github.tobato</groupId> <artifactId>fastdfs-client</artifactId> <version>1.26.1-RELEASE</version> </dependency> Application.properties configuration #Fastdfs configuration fdfs.connect-timeout=600 fdfs.so-timeout=1500 fdfs.trackerList=192.168.1.207:22122 fdfs.thumbImage.height=150 fdfs.thumbImage.width=150 […]