随笔分类 -  spring&mybatis

spring&mybatis
摘要:引入依赖 <!--mybatis-spring与mybatis使用低版本适配--> <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis-spring --> <dependency> <groupId>org.mybatis</gr 阅读全文
posted @ 2023-04-10 14:14 qing222 阅读(18) 评论(0) 推荐(0) 编辑
摘要:package com.lv.qggz.man.service.task;import com.lv.qggz.lib.entity.IntervalAICFaceConfig;import com.lv.qggz.lib.service.IntervalAICFaceConfigService;i 阅读全文
posted @ 2022-08-26 17:25 qing222 阅读(100) 评论(0) 推荐(0) 编辑
摘要:package dhht.seal.hn.gate.config;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPo 阅读全文
posted @ 2021-11-23 17:06 qing222 阅读(36) 评论(0) 推荐(0) 编辑
摘要:两步缺一不可,spring-boot-starter-parent版本:2.2.2.RELEASE 第一步:// 设置单个文件大小spring.servlet.multipart.max-file-size= 50MB// 设置单次请求文件的总大小spring.servlet.multipart.m 阅读全文
posted @ 2021-07-05 11:33 qing222 阅读(3745) 评论(0) 推荐(1) 编辑
摘要:package com.dhht.manager.vo.area;import lombok.Data;import java.io.Serializable;import java.util.List;/** * @Author: sh * @Description: ProvinceVO * @ 阅读全文
posted @ 2020-01-01 00:21 qing222 阅读(276) 评论(0) 推荐(0) 编辑
摘要:package com.lv.qggz.man.dhht.api.typesetting;import com.lv.qggz.man.dhht.api.typesetting.vo.UVO;import org.springframework.stereotype.Controller;impor 阅读全文
posted @ 2020-01-01 00:13 qing222 阅读(431) 评论(0) 推荐(0) 编辑
摘要:1、依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId></dependency>2、初始化配置rabbitmq: addresses: 阅读全文
posted @ 2019-11-08 09:22 qing222 阅读(175) 评论(0) 推荐(0) 编辑
摘要:1、依赖<!-- https://mvnrepository.com/artifact/org.springframework.amqp/spring-rabbit --><dependency> <groupId>org.springframework.amqp</groupId> <artifa 阅读全文
posted @ 2019-11-08 09:18 qing222 阅读(179) 评论(0) 推荐(0) 编辑
摘要:1、引入依赖:(对于依赖冲突自行解决) <dependency> <groupId>com.github.binarywang</groupId> <artifactId>weixin-java-pay</artifactId> <!--<version>3.4.9.B</version>--> < 阅读全文
posted @ 2019-10-18 20:56 qing222 阅读(3579) 评论(2) 推荐(0) 编辑
摘要:!注意:,一定要有 <update id="updateByPrimaryKeySelective" parameterType="com.dhht.model.order.OrderInfo"> update order_info <set> <if test="sendOutStatus != 阅读全文
posted @ 2019-10-18 20:23 qing222 阅读(421) 评论(0) 推荐(0) 编辑
摘要:DELIMITER $$ -- USE `dev_seal_chip_sell_ms_v1`$$; DROP FUNCTION IF EXISTS `GET_ORDER_STATUS`$$ CREATE FUNCTION `get_order_status`(orderId VARCHAR(32)) 阅读全文
posted @ 2019-10-18 20:17 qing222 阅读(374) 评论(0) 推荐(0) 编辑
摘要:通常情况下,主动回滚事务,可以手动抛异常即可,不抛异常可以如下方式回滚 TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); 阅读全文
posted @ 2019-10-18 20:13 qing222 阅读(777) 评论(0) 推荐(0) 编辑
摘要:由于spring中的aop拦截的是代理对象 当拦截的目标方法被本类的另一个方法调用时,会出现拦截失效 最佳实践: 例如拦截RegulationService的update(regulation)方法,当RegulationService的add方法(当前类的非update方法)调用update方法时 阅读全文
posted @ 2019-10-18 20:09 qing222 阅读(5568) 评论(0) 推荐(0) 编辑
摘要:// 后台数据设置到js变量中var down_url = [[${downUrl}]];//"http://127.0.0.1:8080/downFile";var arry = [];arry = [[${FileList}]]; 阅读全文
posted @ 2019-10-18 19:58 qing222 阅读(203) 评论(0) 推荐(0) 编辑
摘要:package com.dhht.config.articleAdvice;import com.dhht.util.UUIDUtil;import lombok.extern.slf4j.Slf4j;import org.aspectj.lang.JoinPoint;import org.aspe 阅读全文
posted @ 2019-10-18 19:48 qing222 阅读(193) 评论(0) 推荐(0) 编辑
摘要:<select id="orderProductStatistics" resultMap="ProductStatisticsVOMap"> SELECT ls.*,IFNULL(sr.out_count,0) AS out_count FROM ( SELECT od.product_id,pr 阅读全文
posted @ 2019-10-18 19:32 qing222 阅读(766) 评论(0) 推荐(0) 编辑
摘要:1、表字段字符集建议使用: utf8mb4、utf8mb4_general_ci 2、保险起见spring-boot配置: spring:datasource:connection-init-sqls: set names utf8mb4; 阅读全文
posted @ 2019-10-18 19:24 qing222 阅读(5282) 评论(0) 推荐(0) 编辑
摘要:1、模板模式 定义一个算法骨架,将一些步骤延迟到子类中。模板方法中子类不可以改变算法结构但是可以重新定义算法。解决的问题:一些方法通用,却在每个子类都重新写了这一方法 Spring中JdbcTemplate就是这种实现,JDBC的步骤是固定的 (1)加载驱动(2)建立连接(3)执行SQL语句(4)访 阅读全文
posted @ 2019-09-12 16:09 qing222 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-12 15:10 qing222 阅读(95) 评论(0) 推荐(0) 编辑
摘要:异常: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property n 阅读全文
posted @ 2019-09-12 14:26 qing222 阅读(1245) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示