随笔分类 - 后端
摘要:view: @Authorize @ApiOperation(value = "学期列表") @GetMapping(value = "/list/page") public Result<PageBean<BaseSemesterVo>> list(@ApiParam("入口验证") SignMo
        阅读全文
            
摘要:1.在同一个事务中只开启一个sqlSession。 2.在mapper中collection嵌套select只开了一个SqlSession <resultMap id="UserOrderIdMap" type="com.zk.domain.User"> <id property="id" colu
        阅读全文
            
摘要:1.时间戳 @JsonFormat(pattern = "yyyy-MM-dd",timezone="Asia/Shanghai") @ApiParam(value = "创建时间", hidden = false) private Timestamp createTime; 传的json数据 { 
        阅读全文
            
摘要:1.mybatis-plus @TableField("encodingASEKey") private String encodingASEKey; 2.通用mapper @Column(name = "encodingASEKey") private String encodingASEKey;
        阅读全文
            
摘要:1. maven的pom <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins
        阅读全文
            
摘要:1.resultMap 映射可以多于select所查询的字段 <resultMap id="BaseResultMap" type=common.model.homework.Homework"> <id column="id" property="id" /> <result column="uu
        阅读全文
            
摘要:<resultMap id="getUnSendTemplateMessagesMap" extends="baseMap" type="cn.kz.b1.common.model.wechat.WechatTemplateMessage"> <collection column="id" prop
        阅读全文
            
摘要:1.json字符串转JavaBean String msg2 = "{\"type\":123,\"data\":\"123\","+"\"currentTime\":\""+LocalDateTime.now()+"\"}"; rabbitMessage = JSONObject.parseObj
        阅读全文
            
摘要:1.注入到容器中 /** * 线程池配置 * * @date 2019年02月27日 */ @Configuration @PropertySource("classpath:/threadpool.properties") public class ExecutePoolConfiguration
        阅读全文
            
摘要:1.springboot测试 1.使用的依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> 
        阅读全文
            
摘要:分页 @GetMapping(value = "cardScore/list") @ApiOperation("分页获取卡片积分") public Result getCartScoreList(@ApiParam(value = "page", required = true) Page<Czgj
        阅读全文
            
摘要:便于在association中自动映射。需要加一个columnPrefix。 columnPrefix: 在resultMap的元素中加自动加前缀,便于重用resultmap。 例: 1.在每个字段上加author_ <resultMap id="authorResult" type="Author
        阅读全文
            
摘要:@Transactionpublic void bigold(){ didi(); //出线异常 int a = 10/0;//老大的方法肯定要回滚,小弟的方法要不要回滚} @Transactionpublic void didi(){ //小弟异常,老大要不要回滚} 事务的传播特性是:老大调用小弟
        阅读全文
            
摘要:1.sb项目改成了两个文件夹,static和tamplate。 static可以直接访问,tamplate必须通过controller访问。 所以js等前端库放在static中。自己写的页面放在tamplate中 2.sb包扫描的定义是:在main启动类中添加扫描包,把其他包的都扫描进来,从而把其他
        阅读全文
            
摘要:章2:tomcat总体架构 1.最简单是架构是一个server:start()、stop()方法。开启start()方法监听并处理请求,stop()释放资源。 2.如果请求处理都相同,只是网络协议不同,我们可以将网络协议和处理请求分开。 ==》产生了Connector和Container。Conne
        阅读全文
            
 
                    
                 浙公网安备 33010602011771号
浙公网安备 33010602011771号