Tag:data source

  • Flutter journey from scratch: Provider

    Time:2021-10-23

    Previous review Flying from scratch: statelesswidget Flying from scratch: statefulwidget Flyter journey from scratch: inheritedwidget In the last article, we introducedInheritedWidgetAnd at the end, it raises a problem. Although the inheritedwidget can provide shared data and release the call of didchangedependencies through getelementforinheritedwidgetofexacttype, the rebuild of countwidget is not avoided and the build is not […]

  • Ten questions and ten answers will give you a comprehensive understanding of the core advantages of tdsql-a

    Time:2021-10-22

    In the series sharing of “domestic database hard core technology salon tdsql-a technology disclosure”, five Tencent cloud technology masters gave an in-depth interpretation of tdsql-a from the aspects of overall technical architecture, column storage and related execution optimization, cluster data interactive bus, distributed execution framework and vector execution engine. In the last issue of this […]

  • Export simple export Excel

    Time:2021-10-21

    Select a third party Library Epplus: authorization problem after 5.0out Magicodes.ie: Based on epplush 4. X, iexporterheaderfilter has poor performance, and the order will be out of order when dynamically adjusting the orderout Npoi: I don’t like it very much Closed XML: Based on document. Openxml, it has good performance, but it needs to encapsulate […]

  • Spring boot version 2.5 features

    Time:2021-10-21

    preface At present, spring boot 2.5.0 RC1 has been released, the development team saidIt will be officially announced on May 20。 We sorted out some changes that we were interested in and compared with each other. 1、 Run endpoint change Secure info endpoint By default/infoThe endpoint is no longer exposed to the web. In addition, […]

  • Sharding JDBC integrates mybatis plus to realize the solution of sub database and sub table

    Time:2021-10-16

    Project address: Github Gitee Official documents: Sharding-JDBC Mybatis-Plus 1、 Run test Step 1: create two new databases:seal_sharding、seal_sharding1 Step 2: import SQL files in DB directory respectively Step 3: open the project and configure environment variablesMYSQL_HOST、MYSQL_PORTAnd user name and password Step 4: run test files (under test package) 2、 Acquisition of tenant ID Modify mybaitsplusconfig.java under […]

  • Spring boot + mybatis configure multiple data sources

    Time:2021-10-12

    Spring boot + mybatis configure multiple data sources In development, sometimes our database is read-write sub database. Then, when developing and using, we need to read databases from different sources. We need to configure spring boot mybatis for multi-source processing. Four classes required Databasecontextholder: used in Dao layer or service layer to select which data […]

  • Integration of redis, mybatis and springboot

    Time:2021-10-12

    Create project The first step, of course, is to create a springboot project and import dependencies. That’s enough.We don’t need jedis here. Spring also supports redis. We use spring boot starter data redis to integrate redis. <!–https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-redis –> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <version>2.3.5.RELEASE</version> </dependency> Write configuration spring: #Redis configuration redis: host: localhost port: 6379 database: 0 […]

  • The six figures take you to thoroughly understand the XA mode of distributed transactions

    Time:2021-10-11

    Introduction: XA protocol is a distributed transaction processing specification proposed by X / open organization. It mainly defines the interface between transaction manager TM and local resource manager RM. At present, mainstream databases, such as Oracle and DB2, support XA protocol. Author Zhu JinjunSource Alibaba cloud primary public official account Xa protocol is a distributed […]

  • Spring boot integration how mybatis is deployed on Weblogic

    Time:2021-10-7

    introduce Based on how to deploy spring boot gracefully on Weblogic, this paper uses spring boot to integrate mybatis and deploy it on WebLogic Server. environment Development tool: EclipseWeblogic version: 10.3.6.0weblogic-jdk:1.8.0_91 Technical realization Create Maven project and add it to POM file <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>com.ws</groupId> <artifactId>weblogic-test</artifactId> <version>0.0.1-SNAPSHOT</version> <properties> <spring.boot.version>1.5.4.RELEASE</spring.boot.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> […]

  • Mybatis understanding and mastery (introductory example)

    Time:2021-10-3

    Mybatis understanding and mastery (introductory example) @(mybatis) [Java, framework, mybatis] configuration file mybatis-config.xml <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE configuration PUBLIC “-//mybatis.org//DTD Config 3.0//EN” “http://mybatis.org/dtd/mybatis-3-config.dtd”> <configuration> <!– Import external profile — > <properties resource=”db-config.properties”></properties> <environments default=”development”> <!– Environment configuration JTA — > <environment id=”development”> <!– Transaction manager: transactions adopt JDBC — > <transactionManager type=”JDBC”/> <!– data source […]

  • How to use ecarts library table for mapping in react framework?

    Time:2021-10-3

    In the process of front-end development, you will not encounter operations that require data visualization, but it is troublesome to implement it only through HTML5 canvas, so you will use echarts, highcharts, chart.js, etc. today Xiaoqian will teach you how to use echarts for mapping under the react framework. 1、 Preparation before development In the […]

  • Spring — configuration of single data source

    Time:2021-10-2

    preface There are many examples of spring data source configuration on the network. Here I will also introduce an example of single data source configuration, based on springboot and native spring. 1、 Generate the project skeleton (springboot) and run a simple program visit:https://start.spring.io/, select the necessary dependencies Let’s first look at the code of the […]