springboot
文章平均质量分 91
chenglindesign
就是混
展开
-
springboot源码解析
springboot源码解析springboot 约定大于配置,一种软件设计范式配置文件加载顺序application*.ymlapplication*.yamlapplication*.properties@SpringBootApplicationspringboot组合注解包括主要下面三个@SpringBootConfiguration // java配置类@EnableAutoConfiguration // 自动配置@ComponentScan(exc原创 2021-01-07 15:21:38 · 193 阅读 · 0 评论 -
spring环境配置profile
application.yml配置spring: profiles: active: dev新增application-dev.yml配置spring: profile: dev datasource: url: jdbc:mysql://127.0.0.1:3306/dev?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 username: root passw原创 2020-09-27 15:23:10 · 240 阅读 · 0 评论 -
springboot之新增注解进行多数据源配置连接
数据源配置spring: datasource: db1: url: jdbc:mysql://192.168.206.68:3306/ai?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 username: root password: zfsoft@123.com type: com.alibaba.druid.pool.DruidDataSource原创 2020-09-27 11:08:46 · 380 阅读 · 0 评论 -
springboot之templates静态资源处理
1. 引入依赖<!--thymeleaf 模板依赖--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId></dependency>2. yml配置spring: thymeleaf: prefix: classpath:原创 2020-09-16 17:09:54 · 2242 阅读 · 0 评论 -
springboot之项目部署到tomcat
SpringBoot项目发布springboot项目部署到tomcatpom.xml配置package为war添加一个servlet的初始化类,注意修改相关对应的资源文件路径,打成war包先install一下看java类打包进去没public class ServletInitializer extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(原创 2020-07-29 13:49:49 · 329 阅读 · 0 评论 -
springboot之websocket应用整理
SpringBoot Websocket1、 pom添加依赖 <!--websocket依赖--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId></dependency>2、添加bean注入首先要注入ServerEndpoi原创 2020-07-29 13:47:31 · 196 阅读 · 0 评论 -
springboot之连接Oracle应用整理
SpringBoot连接Oracle应用整理1、navicat连接![image.png](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9jZG4ubmxhcmsuY29tL3l1cXVlLzAvMjAyMC9wbmcvMTA1MDgzLzE1OTYwMDA0MDk3NzUtZjM4ZmE1YzgtNjVhNS00YmFkLWIwOGQtZWE3YzIxYTE1Nzc3LnBuZw?x-oss-process=image/format,png#align=left&a原创 2020-07-29 13:45:14 · 478 阅读 · 0 评论