The H5 page based on vue 2.0 uses H5’s own positioning, Amap positioning, search for surrounding merchants, coverage markers, and positioning to the current city.

Use Gaode map positioning, search for surrounding merchants, and cover markers in the Vue-based H5 page First install the Amap plug-in npm i @amap/amap-jsapi-loader –save Map hosting container <template> <div id=”container”></div> </template> Map container style <style scoped> #container{<!– –> padding:0px; margin: 0px; width: 100%; height: 800px; } </style> Introduce JS API Loader, initialize the map, […]

Spring transaction AOP causes transaction failure problem

Situation Description First, AOP was enabled, and transactions were enabled at the same time. The TransactionAspect below is a simple AOP aspect with an Around notification. @Aspect @Component public class TransactionAspect {<!– –> @Pointcut(“execution(* com.qhyu.cloud.datasource.service.TransactionService.*(..))”) // the pointcut expression private void transactionLogInfo() {<!– –>} // the pointcut signature /** *Title: around<br> * Description: This Around […]

Vue uses websocket to implement real-time data push and publish, subscribe and reconnect single sign-on functions.

Requirements: Use websocket to implement publishing, subscribing, network disconnection and reconnection, and account squeezing after single sign-in without using plug-ins. 1. Single sign-on (only one of the same account is online at the same time, multiple user logins are prohibited) Implementation: After the user logs in, the token token is obtained and stored locally. It […]

java uses geotools to export shp files

The SHP format is a vector data format used to store geographic information system (GIS) data. SHP files consist of a series of ordered files. The shp files we export include .shp, .shx, .dbf, .prj and .fix files. .shp (shape) file: stores vector map data and records the spatial location information of each feature. .shx […]

Database integrity – entity integrity, referential integrity, attribute constraint naming clauses, domains

Article directory Database integrity 1. Entity integrity 1. Define entity integrity 2. Entity integrity check and breach handling 2. Referential integrity 1. Define referential integrity 2. Reference integrity check and default conditions 3. Constraints on attributes 1. Definition of constraints on attributes 2. Inspection of constraints on attributes and handling of breaches 4. Integrity constraint […]

OpenMMlab exports the yolov3 model and uses onnxruntime and tensorrt for inference

Export onnx file Use script directly import torch from mmdet.apis import init_detector, inference_detector config_file = ‘./configs/yolo/yolov3_mobilenetv2_8xb24-ms-416-300e_coco.py’ checkpoint_file = ‘yolov3_mobilenetv2_mstrain-416_300e_coco_20210718_010823-f68a07b3.pth’ model = init_detector(config_file, checkpoint_file, device=’cpu’) # or device=’cuda:0′ torch.onnx.export(model, (torch.zeros(1, 3, 416, 416),), “yolov3.onnx”, opset_version=11) The exported onnx structure is as follows: The output is the output of three different levels of detection heads. If you […]

How AJAX uses get requests to submit data to the server and achieve partial data refresh——AJAX

<!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <title>Title</title> </head> <body> <script type=”text/javascript”> window.onload = function () { document.getElementById(“btn”).onclick = function () { var ajax = new XMLHttpRequest(); ajax.onreadystatechange = function () { if(ajax.readyState === 4) { if(ajax.status === 200) { document.getElementById(“mySpan”).innerHTML = ajax.responseText; } else { alert(ajax.status); } } } //Open channel var username = […]

Python uses SQLAlchemy to operate sqlite

Python uses SQLAlchemy to operate sqlite sqllite 1. Introduction to SQLite 2. Install SQLite on Windows 3. Create a database using SQLite 3.1 Create database from command line 3.2 navicat connects to the database 4.SQLite data types storage class SQLite Affinity type Boolean data type Date and Time data types 5. Commonly used sql syntax […]