摘要:
jdbc连接池是spring配置中的重要一环,在SpringBoot中该如何处理呢? 答案是不需要处理,我们只要找到SpringBoot提供的启动器即可: 在pom.xml中引入jdbc的启动器: SpringBoot已经自动帮我们引入了一个HikariCP连接池,因此,我们只需要指定连接池参数即可 阅读全文
摘要:
认识Thymeleaf【读音同 thyme leaf英 [taim li:f] 美 [taɪm lif]】 Thymeleaf是一个流行的模板引擎,该模板引擎采用Java语言开发; 模板引擎是一个技术名词,是跨领域跨平台的概念,在Java语言体系下有模板引擎,在C#、PHP语言体系下也有模板引擎,甚 阅读全文
摘要:
在application.properties中配置字符编码: 阅读全文
摘要:
首先我们定义一个拦截器: 然后定义配置类,注册拦截器: 接下来运行并查看日志: 阅读全文
摘要:
pringMVC记录的log级别是debug,springboot默认是显示info以上,我们需要进行配置。 SpringBoot通过logging.level.*=debug来配置日志级别,*填写包名 阅读全文
摘要:
集成前的准备 1、 阿里巴巴提供的dubbo集成springboot开源项目; 2、 https://github.com/alibaba 3、 我们将采用该项目提供的jar包进行集成; dubbo开发一般建议采用三个项目: 开发Dubbo服务接口项目 开发Dubbo服务提供者项目 开发Dubbo服 阅读全文