摘要:
Idea的SpringBoot工程里遇到Could not autowire. No beans of ‘BookService’ type found。 解决办法: 换成@Resource spring中注解@Resource 与@Autowire 区别1.@Autowired按byType自动注 阅读全文
摘要:
一、添加依赖 https://mvnrepository.com/ <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <versio 阅读全文
摘要:
SpringBoot默认加入了jackson-databind作为JSON处理器。 package com.example.pojo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.a 阅读全文
摘要:
SpringBoot默认日志框架是 Logback, 使用 INFO 级别输出到控制台 日志级别:TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF 如果要SpringBoot将控制台中的日志写到日志文件中,需要在application.propert 阅读全文
摘要:
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [index], template might not exist or might not be accessible by any of the c 阅读全文
摘要:
一、引入thymeleaf依赖 https://mvnrepository.com/ 1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-thymeleaf</a 阅读全文