整合Druid时遇到的错误:Failed to bind properties under 'spring.datasource' to javax.sql.DataSource:
整合Druid时需导入的依赖:Druid pom.xml依赖
整合Druid时编写的配置文件:config/DruidConfig.java
整合Druid时的yml配置文件:application.yml
spring-boot使用MySQL导入的pom.xml依赖:MySQL的pom.xml依赖
使用log4j框架时,提示警告如下信息:log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (com.alibaba.druid.pool.DruidDataSource).
spring-boot整合mybatis时主键自增:加一个Option注解 mybatis依赖 pom.xml
mybatis的配置文件:mybatis-config.xml
mybatis的mapping文件:mybatis-{table_name}-mapper.xml
spring-boot整合mybatis时,通过配置文件查询数据库
spring-boot使用mybatis查询多条数据的具体操作案例
spring-bootmybatis遇到错误:Invalid bound statement (not found): com.springboot.mapper.RealtimeMapper.selectAll
spring-boot中类名与文件名不一致错误,修改文件名
spring-boot使用JPA进行数据访问时遇到的错误:org.hibernate.InstantiationException: No default constructor for entity: : com.springboot.jpa.entity.User
spring-boot使用thymleaf模板时,总是返回字符串,而不是页面:将@RestControler改成@Controler即可
spring-boot导入thymleaf依赖时出错: org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$ThymeleafDefaultConfiguration.templateEngine(ThymeleafAutoConfiguration.java:153)
spring-boot使用thymleaf模板时:org.thymeleaf.exceptions.TemplateInputException: Error resolving template "XXX",报错
spring-boot使用thymleaf模板时出现错误:Error resolving template template might not exist or might not be accessible
spring-boot使用lombok依赖:pom.xml
spring-boot中的@Bean和@Component的区别
spring-boot注解理解:
Spring-Boot之@Enable*注解的工作原理
Spring Boot 注解—基本知识
Linux(centos)安装docker
在centos中使用docker pull mysql命令出错:(Client.Timeout exceeded while awaiting headers)
spring-boot通过配置类实现前台网页的重定向转发,功能类似:
@GetMapping("/home") public String home(){ return "home"; //通过thymleaf模板进行解析,当接收到浏览器的一个请求(http://localhost:8080/home)时,返回templates文件夹下的一个home.html页面
}
如果有很多这种页面的话,那我们必须每次都写一个类似这样的controler去实现,我们还可以通过配置类的放进行实现,通过重定向直接转发,关键代码:全部代码
registry.addViewController("/home").setViewName("home");//遇到浏览器的/home请求,返回一个home.html页面
spring-boot项目中,实现前台登录的功能,用到了一个拦截技术,代码参考
spring-boot项目中,实现日志记录功能(slf4j+logback):代码参考
spring-boot项目开发时,浏览器请求的规范,(Restful)
spring-boot项目启动时,遇到一个错误:Field usersMapper in com.springboot.cib_hk.controler.UsersControler required a bean of type 'com.springboot.cib_hk.mapper.UsersMapper' that could not be found.\
spring-boot错误:Could not find result map 'com.springboot.cib_hk.bean.Users' referenced from 'com.springboot.cib_hk.mapper.UsersMapper.selectByUsername'
spring-boot之json格式数据,Postman发送json格式数据给springboot接收
JAVA中如何通过接口访问常量的值
spring-boot返回数据json格式排序问题的解决
'userService' that could not be found.
【spring-boot】Cannot determine value type from string 'xxxxxx';
如果您觉得本文的内容对您的学习有所帮助:
关键字:
编写spring-boot项目