[python\import] When importing, the local project code (library constructed with setup.py and other methods) is given priority instead of the library installed by pip || Code test

【start:20231103】 Article directory introduction Problem Description Specific case Construct your own python library Files involved in constructing the library pyproject.toml setup.py Commands involved in constructing the library `pip install -e .` `python setup.py develop` `python setup.py install` other problems Problems with linkage between construction library and importlib Practical combat: Installation of local Cellpose library Case […]

Research and personal thoughts on using easyexcel for batch import and export

Without further ado, let’s get straight to the code; The technologies involved are: MySQL (5.1.47), mybatis, jdk11 First of all, let’s give a general introduction. Since it is about easyexcel, its dependence on Maven is definitely indispensable. In addition, this article is based on the author’s own understanding, learning or use. If you want to […]

According to the data import function settings of the system

1. Backend @Log(title = “Bus Stop”, businessType = BusinessType.IMPORT) @PreAuthorize(“@ss.hasPermi(‘busStop:busStop:import’)”) @PostMapping(“/importData”) public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception {<!– –> ExcelUtil<BusStop> util = new ExcelUtil<BusStop>(BusStop.class); List<BusStop> busStopList = util.importExcel(file.getInputStream()); LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); String operName = loginUser.getUsername(); String message = busStopService.importUser(busStopList, updateSupport, operName); return AjaxResult.success(message); } @GetMapping(“/importTemplate”) public AjaxResult importTemplate() {<!– –> ExcelUtil<BusStop> util […]

Data import and export Excel table interface

Article directory Data import and export Excel table interface rely Custom listener (optional) Entity class example control layer export data Import Data git common commands Data import and export Excel table interface Dependencies <!– Export excel –> <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>3.2.1</version> </dependency> Custom listener (optional) import com.alibaba.excel.context.AnalysisContext; import com.alibaba.excel.event.AnalysisEventListener; import com.alibaba.excel.exception.ExcelDataConvertException; import com.xiaohe.uploadimage.entity.User; import java.util.ArrayList; […]

Galaxy Kirin server system docker environment imports the base image, installs openjdk-1.8.0 and repackages it

In the docker environment of the Galaxy Kirin server system, import the base image, install openjdk-1.8.0 and repackage 1. System version 2. Install docker and start the service 1. Configure external network source 2.Install docker package 3. Start the service and set it to start automatically at boot 3. Base image import configuration 1. Upload […]

Spring boot imports and exports excel and integrates EasyExcel

1. Install dependencies <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>3.3.2</version> </dependency> 2. Create a new export tool class package com.example.springbootclickhouse.utils; import javax.servlet.http.HttpServletResponse; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; public class ExcelReponseTools { //Set export style public static void setExcelResponseProp(HttpServletResponse response, String rawFileName) throws UnsupportedEncodingException { response.setContentType(“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”); response.setCharacterEncoding(“utf-8”); String fileName = URLEncoder.encode(rawFileName, “UTF-8”); response.setHeader(“Content-disposition”, “attachment;filename*=utf-8”” + fileName + “.xlsx”); } } […]

Springboot uses EasyExcel to import and export Excel files

1. Prepare Excel files and database table results 2, import code 1, introduce dependencies <!– https://mvnrepository.com/artifact/com.alibaba/easyexcel –> <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>3.1.0</version> </dependency> 2, create request body import com.alibaba.excel.annotation.ExcelProperty; import lombok.Data; /** * Description * * @author WangYaoLong * @createdate 2023/11/01 0001 11:43 */ @Data public class StudentImportExcelForm {<!– –> @ExcelProperty(value = “Student Name”, index = […]

Solve the problem of cannot import name BatchNormalization from keras.layers.normalization

Table of Contents Solve the problem of cannot import name ‘BatchNormalization’ from ‘keras.layers.normalization’ Problem Description problem analysis solution in conclusion What is the BatchNormalization module? The principle of BatchNormalization Advantages and functions of BatchNormalization Use of BatchNormalization Solution to cannot import name ‘BatchNormalization’ from ‘keras.layers.normalization’ Recently, in the process of using Keras for deep learning […]