Automatic test based on web interface (based on HttpRunner+Fiddler)

1. Install Fiddler, please refer to http://together-learn.com/post/263 2. Install HttpRunner, the test I did in windows, precondition: install python and pip pip install httprunner 3. Record interface request through Fiddler 4. Export request session. har format file 5. The har file is converted to the test case file required by HttpRu ...

Posted by ssppllaatt on Thu, 14 Nov 2019 15:08:14 +0100

mybatis source series Configuration class Configuration

In Chapter 1, we learned that the core configuration class of mybatis is org.apache.ibatis.session.Configuration.java Let's first look at the class diagram of Configuration.java Seeing the class diagram, I was stunned. There are too many properties However, considering that mybatis has such powerful functions and so m ...

Posted by bentobenji on Sun, 10 Nov 2019 15:59:52 +0100

java common service cluster building [3] tomcat session sharing

1. Environmental constraints centos 7 64 bit nginx-1.5.0 apache-tomcat-8.5.38 2. Preconditions Complete tomcat cluster building and nginx load balancing https://www.jianshu.com/p/c8aa1a323e3a Decompress apache-tomcat-8.5.38 twice, and divide it into tomcat8180 and tomcat8280 Modify the ports of server.xml in tomcat8180 to ...

Posted by xwishmasterx on Fri, 08 Nov 2019 23:33:18 +0100

How to execute SQL in Mapper interface of Mybatis

Preface In many ORM frameworks, Mybatis is used by more and more Internet companies. The main reason is that Mybatis is easy to use and flexible to operate. This series is going to ask questions to learn more about Mybatis from the source layer. Put questions to The most common way to use Mybatis is to get a Mapper interface object, and the ...

Posted by verN on Fri, 08 Nov 2019 10:49:44 +0100

SQLAlchemy -- basic addition, deletion, modification and query

Catalog brief introduction install Component Simple use Execute native sql (not commonly used) orm use (key) Common data types Common parameters of Column Common operations (CURD) Create an instance of a mapping class Create Session session add()/ ...

Posted by Hikari on Sun, 03 Nov 2019 17:02:59 +0100

MySQL percona toolkit -- Pt OSC execute SQL command

PT OSC execution log In the DROP COLUMN operation for table tb004 with data volume of 100000, the PT OSC tool log is: Operation, tries, wait: analyze_table, 10, 1 copy_rows, 10, 0.25 create_triggers, 10, 1 drop_triggers, 10, 1 swap_tables, 10, 1 update_foreign_keys, 10, 1 Altering `db001`.`tb004`... Creating new table... ...

Posted by KiwiDave on Sun, 03 Nov 2019 06:30:47 +0100

mysql master-slave dual master configuration

mysql dual primary configuration mysql dual masters are actually synchronous and subordinate to each other. Any one can perform the insert action The production environment is used very little, because there are still concerns about data consistency. The production environment is generally enough The configuration of 172.19.132.121 starts ...

Posted by misterph on Sat, 02 Nov 2019 08:19:58 +0100

Web tutorial email sending and verification code

Article directory I. use QQ email to send mail 1. Get the authorization code of QQ email 2. Import jar package mail.jar 3. Test code Verification code implementation 1. Principle of picture verification code 2. Verification code tool class 3.VerifyCodeServlet 4.UserServlet.java 5.login.jsp ...

Posted by VTS on Sat, 02 Nov 2019 04:37:19 +0100

Mybaits primary key value updating

Article directory Mybaits primary key value updating Return the primary key value generated by the current session (supported by MySQL and Oracle) Test it. You can write back the primary key value by setting the attribute. The principle is unknown (only supported by MySQL) Test it. Mybaits pri ...

Posted by ShadowIce on Tue, 29 Oct 2019 19:17:05 +0100

websocket simple implementation based on springboot

1. Create a new springboot project and add a maven dependency <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> The file directory structure is as follows: 2. Create websocket server c ...

Posted by norbie on Tue, 29 Oct 2019 18:03:49 +0100