框架
mokabaka
知道的越多,不知道的就越多!
展开
-
手写SpringMVC-DispatcherServlet
web.xml配置 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp..原创 2021-01-28 13:13:58 · 411 阅读 · 0 评论 -
Swagger3.0
package com.sunreal.config; import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configura原创 2020-11-07 20:14:12 · 347 阅读 · 1 评论 -
MybBatis动态SQL
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.sunreal.mapper.BlogMapper"> <!--SQL片段,将常用SQL原创 2020-10-18 11:15:53 · 340 阅读 · 1 评论 -
Mybatis:association【多对一】,collection【一对多】
association【多对一】 @Data @AllArgsConstructor @NoArgsConstructor @Accessors(chain = true) public class Student { private int id; private String name; /** * 学生要关联一个老师 */ private Teacher teacher; } @Data @AllArgsConstructor @NoArgsCo.原创 2020-10-17 18:33:13 · 164 阅读 · 0 评论