Configuration and common problems of jeecg code generator

Take mysql for example: diver_name=com.mysql.jdbc.Driver url=jdbc:mysql://192.168.*.*:3306/car?useUnicode=true&characterEncoding=UTF-8&useSSL=false username=root password=dp@ssord database_name=car jeecg_config.properties #code_generate_project_path project_path=D:\\SourceProject\\car #bussi_package[User defined] bussi ...

Posted by invinate on Sat, 07 Dec 2019 18:16:37 -0800

xutils3 database upgrade (markdown version)

xutils is a good android development framework, which reduces a lot of code in the process of using. But there are also a few things to pay attention to. For other uses, please see Detailed usage of xutils3 1. Notes Unlike the comments of scalpel, the comments of xutils are in runtime (ps: I don't understand either). It is found ...

Posted by jchemie on Sat, 07 Dec 2019 17:16:48 -0800

Use guide for Foreign Data Wrappers of PostgreSQL

The function of PostgreSQL's fdw implementation is the cross database operation between each PostgreSQL database and the remote database. The function is the same as oracle's dblink. The environment in this article is shown below: 1.1. Target installation software package [root@hdp06 ~]# yum -y install postgresql10-contrib.x86_64 1.2 creating ...

Posted by introvert on Sat, 07 Dec 2019 14:14:23 -0800

Automatic generation of golang struct from mysql table structure

a lib for golang , generate mysql table schema to golang struct Automatic generation of golang struct from mysql table structure github address https://github.com/gohouse/converter install Download the executable directly: Download address golang source package: go get github.com/gohouse/converter Sample table structure CREATE TABLE `prefix ...

Posted by scast on Sat, 07 Dec 2019 13:30:25 -0800

5. redis distributed lock

Reference link: https://www.cnblogs.com/linjiqin/p/8003838.html 1: Introduction There are three ways to implement distributed lock: 1. Optimistic database lock; 2. redis based; 3. zookeeper based. redis server is a single thread operation, which perfectly avoids the problem of multithreading synchronization and realizes atomicity. First of all, ...

Posted by freshrod on Sat, 07 Dec 2019 12:19:12 -0800

Development of django - configuration and use of mongodb

Today, I sorted out how to use mongodb in django project. The environment is as follows:ubuntu18.04, django2.0.5, drf3.9, mongoengine0.16 Step 1: configure mongodb and mysql in settings.py as follows (you can use both mysql and mongodb): DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # database engine 'NA ...

Posted by nimbus on Sat, 07 Dec 2019 05:53:20 -0800

After reading this article, do you still feel that spring security integration OAuth2 custom query users are complex?

Spring security integration OAuth2 is recognized by developers as the best matching partner for resource protection and service authentication. This pair of good friends have been quietly guarding the security of application services. According to the different roles of visitors, they can control the granularity to specific interfaces, so as to ...

Posted by charlieholder on Sat, 07 Dec 2019 05:17:58 -0800

Method of calling object attribute or object in html template of django template

Environment: relying on the original test2 database python3 version Multi python environment Enter, python 3 virtual environment, new project test4: ]# cd py3/django-test1/ ]# django-admin startproject test4 To create an app bookshop: ]# cd test4 ]# python manage.py startapp bookshop Modify the settings.py main configuration file: ]# vim test ...

Posted by bloodgoat on Sat, 07 Dec 2019 03:25:16 -0800

Getting started with SpringBoot 14, adding Activiti5.22 workflow

For the basic configuration of the project, please refer to the introduction to Springboot I. use myEclipse to create a new Springboot project and myEclipse to create a new Springboot project. Now let's add an Activiti5.22 support to the project. Spring boot uses version 2.0.7 (later, trying to upgrade to 2.1.1 and 2.2.1 is a failure). The det ...

Posted by barbs75 on Sat, 07 Dec 2019 02:52:56 -0800

php causes memory overflow

When performing a step of exporting csv, when more than 3w pieces of data are to be exported, an error will be reported, as follows: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) php stores more than 3w pieces of data. This array takes up more than 20M of memory Solution: take data in batches and process da ...

Posted by mattsutton on Sat, 07 Dec 2019 00:45:51 -0800