上一页 1 2 3 4 5 6 ··· 20 下一页
摘要: //引入命名空间 xmlns:th="http://www.thymeleaf.org" //用th:<prop>替换<prop>属性的值 <h4 th:text="${hello}" ></h4> 1 Fragment inclusion th:insert th:replace 2 Fragme 阅读全文
posted @ 2020-07-25 11:41 阿布都日 阅读(201) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 阅读全文
posted @ 2020-07-25 11:02 阿布都日 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1. JSP 2. Velocity 3. Freemarker 4. Thymeleaf 阅读全文
posted @ 2020-07-25 10:20 阿布都日 阅读(67) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>org.webjars</groupId> <artifactId>jquery</artifactId> <version>3.5.1</version> </dependency> 阅读全文
posted @ 2020-07-25 10:03 阿布都日 阅读(55) 评论(0) 推荐(0) 编辑
摘要: springboot的静态资源加载是通过WebMvcAutoConfiguration类实现的,下面的方法是加载资源配置的方法: 阅读全文
posted @ 2020-07-25 09:55 阿布都日 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 日志框架: JUL(java.util.logging):实现 JCL:标准 jboss-logging:标准 ####logback####:实现 ####log4j####:实现 log4j2:实现 slf4j:标准 问题: spring=>commons-logging Hibernate=> 阅读全文
posted @ 2020-07-24 16:19 阿布都日 阅读(110) 评论(0) 推荐(0) 编辑
摘要: /** * @SpringBootApplication :是以下三个注解的和 * @SpringBootConfiguration :备注配置类 * @EnableAutoConfiguration :备注开启自动配置 * @ComponentScan :备注包扫描 */ /** * @RestC 阅读全文
posted @ 2020-07-24 15:41 阿布都日 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1. 创建一个maven项目 2. POM文件中导入依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.1.R 阅读全文
posted @ 2020-07-24 13:40 阿布都日 阅读(1279) 评论(0) 推荐(0) 编辑
摘要: springboot静态资源配置 spring.resources.static-locations 指定静态资源路径(控制器访问路径和样式脚本所在路径) classpath:templates/,classpath:static/ spring.mvc.view.prefix 视图(控制器转发路径 阅读全文
posted @ 2020-07-23 22:54 阿布都日 阅读(250) 评论(0) 推荐(0) 编辑
摘要: //可以使用ConsumerReBalanceListener来扩展实现自定义存储 //提交方法和获取offset方法得自己实现 阅读全文
posted @ 2020-07-20 21:28 阿布都日 阅读(274) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 20 下一页