一路繁花似锦绣前程
失败的越多,成功才越有价值

导航

 

2020年3月30日

摘要: 一、配置pom.xml <!-- springboot整合redis --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId 阅读全文
posted @ 2020-03-30 23:09 一路繁花似锦绣前程 阅读(211) 评论(0) 推荐(0) 编辑
 
摘要: 一、配置pom.xml <!-- spring boot web支持 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dep 阅读全文
posted @ 2020-03-30 22:23 一路繁花似锦绣前程 阅读(642) 评论(0) 推荐(0) 编辑
 
摘要: 一、开启POP3/SMTP服务 二、配置pom.xml <!-- 邮件依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> < 阅读全文
posted @ 2020-03-30 21:46 一路繁花似锦绣前程 阅读(165) 评论(0) 推荐(0) 编辑
 

2020年3月29日

摘要: 一、配置pom.xml <!-- springboot整合MyBatis --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> 阅读全文
posted @ 2020-03-29 21:45 一路繁花似锦绣前程 阅读(278) 评论(0) 推荐(0) 编辑
 
摘要: 一、配置pom.xml <build> <plugins> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.2 阅读全文
posted @ 2020-03-29 18:26 一路繁花似锦绣前程 阅读(128) 评论(0) 推荐(0) 编辑
 
摘要: 一、整合QuartZ @SpringBootApplication(scanBasePackages = {"com.wuxi"}) @EnableScheduling // 开启任务调度 public class Myapplication { //入口 public static void ma 阅读全文
posted @ 2020-03-29 14:53 一路繁花似锦绣前程 阅读(293) 评论(0) 推荐(0) 编辑
 
摘要: 一、异步调用 @SpringBootApplication(scanBasePackages = {"com.wuxi"}) @EnableAsync // 开启异步调用 public class Myapplication { //入口 public static void main(String 阅读全文
posted @ 2020-03-29 14:11 一路繁花似锦绣前程 阅读(158) 评论(0) 推荐(0) 编辑
 
摘要: 一、自定义拦截器 @Configuration//声明这是一个配置 public class MyInterceptor extends WebMvcConfigurerAdapter { @Override public void addInterceptors(InterceptorRegist 阅读全文
posted @ 2020-03-29 13:24 一路繁花似锦绣前程 阅读(5134) 评论(0) 推荐(0) 编辑
 
摘要: 一、配置pon.xml <!-- fastjson的依赖 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.15</version> </dependency> 阅读全文
posted @ 2020-03-29 11:32 一路繁花似锦绣前程 阅读(841) 评论(0) 推荐(0) 编辑
 
摘要: 一、静态资源配置 a、配置application.yml spring: resources: static-locations: classpath:/static/ 二、打包war发布 a、需要打成war包 <packaging>war</packaging> <!-- maven项目packa 阅读全文
posted @ 2020-03-29 11:01 一路繁花似锦绣前程 阅读(1250) 评论(0) 推荐(0) 编辑