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

浙公网安备 33010602011771号