[MyBatis] reverse engineering use
Using mybatis reverse engineering, it is very convenient to automatically map with tables in the database, and generate mapper.xml and mapper interface.
Here I use IDEA to demonstrate through maven.
Step 1: configure the pom.xml fileThe corresponding shelf package is introduced. The emphasis of reverse engineering is on the mybat ...
Posted by luddeb on Wed, 04 Dec 2019 15:53:41 -0800
Python crawler crawls the abstract of HowNet paper according to the key words and saves it in the database
Preface
The text and pictures of this article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling.
Author: broken sesame
Because the laboratory needs some corpus for research, and th ...
Posted by sathyan on Wed, 04 Dec 2019 10:13:40 -0800
maven multi warehouse configuration company warehouse and Ali warehouse
For the company's intranet private server warehouse, the private server warehouse cannot access the Internet. At this time, the private server warehouse cannot act as an agent for Alibaba's maven warehouse. Our maven needs to configure multiple warehouses:
conf/settings.xml configuration file in maven Directory:
1. Create a new profile in the p ...
Posted by sameveritt on Wed, 04 Dec 2019 08:17:31 -0800
Multiple domain name binding of the same Tomcat
Requirement: the same Tomcat
Objectives:
1. Access the project under the webapp of Tomcat through the localhost / project name
2. Through www.aaa.com and www.bbb.com, visit the virtual hosts with different domain names under Tomcat
I. modify the port number under the server.xml file
II. Project location
3. Multi domain configu ...
Posted by genics on Wed, 04 Dec 2019 07:05:45 -0800
Spring cloud entry notes Feign declarative HTTP call
In spring cloud, every microservice is a service provider as well as a service consumer, and each microservice often needs to call each other. Generally, services provide some REST interfaces for external services to call. Feign is a component that provides explicit HTTP calls between services. With feign, we can use spring MVC ...
Posted by Shibby on Wed, 04 Dec 2019 04:20:22 -0800
Using spring's special bean s to complete the distributed configuration
I. foreword
Decentralized configuration idea: create a properties file, add data, configure the properties file in the beans file first, and then use placeholders to reference data in beans
For many processing interfaces in the bean's life cycle, the processing method is spring's own bean, that is, spring's special bean
2. When the property f ...
Posted by amites on Wed, 04 Dec 2019 01:29:06 -0800
C ා dynamically create database 3 (MySQL)
The previous instructions use EF to dynamically create a database and a table. The database uses SQL SERVER2008, which is different when MYSQL is used
I. add EntityFramework.dll, System.Data.Entity.dll, MySql.Data, MySql.Data.Entity.EF6
Note: Entity Framework 5.0.0 (it seems that the latest 6.X does not support mysql)
2. To add dll files, you c ...
Posted by nmpku on Wed, 04 Dec 2019 00:09:24 -0800
AJAX asynchronous request
Native ajax operations
JavaScript asynchronous GET request
// Step 1: create an ajax object
//Determine the browser type of the user and decide how to use ajax objects
if (typeof ActiveXObject != "undefined") {
var version = [
'Msxml2.XMLHTTP.6.0',
'Msxml2.XMLHTTP.5.0',
'Msxml2.XMLHTTP.3.0 ...
Posted by GM on Tue, 03 Dec 2019 22:03:45 -0800
Factory method pattern - Design Pattern
The factory method pattern optimizes the simple factory pattern by introducing abstract factory class to make the system more open and close.
Let's use an example to simulate the factory method pattern
Create an abstract factory first
package FactoryMethodPattern;
public interface LoggerFactory {
public Logger createLo ...
Posted by PatelNehal on Tue, 03 Dec 2019 12:13:02 -0800
Remember account number and password of login page
First, configure the login xml file, and set two EditText, a Button and a CheckBox;
The configuration code is as follows:
<?xml version="1.0" encoding="utf-8"?>
<EditText
android:id="@+id/et_userName"
android:layout_width="300dp"
android:layout_height="wrap_content"
/>
</Li ...
Posted by anoopmail on Tue, 03 Dec 2019 08:13:44 -0800