![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
后端
StevenGerrad
这个作者很懒,什么都没留下…
展开
-
【django】数据库初始化写入信息
django数据库初始化写入信息将该文件放在migrations文件夹下:初始化media中的图像名称到图像表中。from django.db import migrationsfrom back import settingsimport osfrom tool.preprocess import namenormaldef forwards_func(apps, schema_editor): db_alias = schema_editor.connection.alia原创 2021-05-16 15:04:58 · 257 阅读 · 0 评论 -
【IDEA】idea中Git的使用小技巧
idea中Git的使用简单总结注意updatecommitpush其他注意idea 会自动检测项目的git每次commit前先update否则可能会有冲突updatecommitpush选择要提交的文件,并选择提交其中的内容。添加提交说明。可以为了节省时间取消代码检查啥的。选择commit and push。其他...原创 2020-06-24 17:17:59 · 394 阅读 · 0 评论 -
【maven】配置ali镜像
maven配置阿里镜像注意要保证网络畅通打开,File->Settings选择Build,Execution,Deployment->Build Tools->Maven选择Override选择新的settings.xml文件settings.xml内容如下<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"原创 2020-06-24 17:09:51 · 166 阅读 · 0 评论 -
【mybatis】一对一关联查询
mybatis: 一对一关联查询注意代码部分实体类(extity)mybatismapperservicecontroller注意在.xml文件编写中有报错,The content of element type "resultMap" must match ...。参考了这篇博客的解答https://blog.csdn.net/chenxing1990/article/details/79649958<resultMap>标签中要按照<id><result>原创 2020-06-24 17:01:25 · 124 阅读 · 0 评论 -
【spring-boot】前端传图像到后端
spring-boot+thymeleaf+ajax前端传图像到后端注意:前端html前端js(ajax)后端controller层配置文件application.yml注意:本文总体上参考https://www.cnblogs.com/yxmhl/p/11972021.html但写了继承WebMvcConfigurationSupport的类会有问题。详见https://blog.csdn.net/weixin_42851893/article/details/87977523前端html&l原创 2020-06-22 23:01:37 · 1524 阅读 · 1 评论 -
【maven】Controller层参数如何设置传null
maven @Controller层参数传null报错如果gainPoint未传参会报错。如果其为String类型可以设置@RequestParam(required = false )但如果是int类型,由于null无法赋给int同样会报错。那么可以改为Integer类型即可。...原创 2020-06-14 20:30:13 · 801 阅读 · 0 评论 -
【Maven】import maven依赖安装失败——暂时玄学解决
IDEA import maven安装包失败报错:Could not transfer artifact org.springframework.boot:spring-boot-dependencies:pom:2.3.0.RELEASE from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): sun.security.validator.ValidatorException: PKIX path build原创 2020-06-06 23:42:20 · 625 阅读 · 0 评论 -
【SQL数据库】查询语句练习题
表结构和初始化数据drop database if exists emps;create database emps;use emps;create table emp(EMPNO INT, -- 员工号ENAME VARCHAR(10), -- 员工姓名JOB VARCHAR(9), -- 工作岗位MGR int, -- 经理的员工号,外键HIREDATE date, -- 入职时间SAL double, -- 底薪COMM double, -- 提成DEPTNO int, --原创 2020-06-05 10:00:00 · 1013 阅读 · 1 评论 -
【杂文】spring-boot报错 ~ zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognized or represents more than on time zone.
spring-boot报错 zone value 'Öйú±ê׼ʱ¼ä' is unrecognized修改MySQL的配置文件(failed)更改MySQL中的系统时间(failed)修改.xml链接文件(success)在项目build的时候报错Failed to execute goal org.mybatis.generator:mybatis-generator-maven-p...原创 2019-11-23 15:34:53 · 167 阅读 · 0 评论