09 2018 档案

摘要:改为 15000s,表示秒 参考:http://www.leftso.com/blog/486.html 阅读全文
posted @ 2018-09-21 08:29 BigOrang 阅读(4078) 评论(1) 推荐(0) 编辑
摘要:mvn archetype:generate -DinteractiveMode=false -DgroupId=com.bigorang -DartifactId=first_app_by_maven -Dversion=1.0.0-SNAPSHOT 阅读全文
posted @ 2018-09-16 20:41 BigOrang 阅读(114) 评论(0) 推荐(0) 编辑
摘要:git windows版下载地址: https://github.com/git-for-windows/git/releases/download/v2.19.0.windows.1/Git-2.19.0-64-bit.exe 直达-->百度云地址 <-直达 https://pan.baidu.c 阅读全文
posted @ 2018-09-14 11:13 BigOrang 阅读(199) 评论(0) 推荐(0) 编辑
摘要:1. 两种基本邮件传输协议:STMP协议、POP3协议 2. 发展的两种协议 IMAP协议、Mime协议 文本、图片、附件、HTML邮件、邮件模板、异常处理、 1. 引入依赖pom.xml <!-- https://mvnrepository.com/artifact/org.springframe 阅读全文
posted @ 2018-09-14 08:23 BigOrang 阅读(222) 评论(0) 推荐(0) 编辑
摘要:WebService CXF异常 1. 有可能是你的实体类上没有@XmlRootElement注解 加上注解即可 2. 有可能是你没有将jettison-1.0.1.jar 使用CXF所需jar包包导入 导入jettison依赖即可 阅读全文
posted @ 2018-09-10 11:01 BigOrang 阅读(2094) 评论(0) 推荐(0) 编辑
摘要:3. 修改启动类 为继承 SpringBootServletInitializer 4. 重写启动类的 configure方法,方法中return builder.sources(XXX.class); //XXX为自己的启动类 5. clean 项目 6. install项目 阅读全文
posted @ 2018-09-06 21:26 BigOrang 阅读(138) 评论(0) 推荐(0) 编辑
摘要:WebMvcConfigurerAdapter is deprecated 继承的方式已经被弃用了 直接实现 WebMvcConfigurer类即可 阅读全文
posted @ 2018-09-05 19:33 BigOrang 阅读(111) 评论(0) 推荐(0) 编辑
摘要:1. 使用@EnableAsync开启异步 2. 定义@Component`, 方法上使用@Async作为组建让容器扫描执行 使用场景: 发送短信 发送邮件 App消息推送 阅读全文
posted @ 2018-09-05 19:20 BigOrang 阅读(166) 评论(0) 推荐(0) 编辑
摘要:SpringBoot定时任务 项目开发中经常需要执行一些定时任务,比如需要在每天凌晨时候,分析一次前一天的日志信息。Spring为我们提供了异步执行任务调度的方式,提供TaskExecutor 、TaskScheduler 接口。 1. 启动类添加@EnableScheduling注解 2.建立定时 阅读全文
posted @ 2018-09-05 19:05 BigOrang 阅读(218) 评论(0) 推荐(0) 编辑
摘要:作用:资源文件中的配置属性映射到实体类属性 1.引入包 2. 创建一个properties文件resource.properties 3. 创建Resource.java 4. 需要使用的地方使用 自动装配 @Autowired private Resource resource; 阅读全文
posted @ 2018-09-05 11:41 BigOrang 阅读(257) 评论(0) 推荐(0) 编辑
摘要:1. 创建项目的两种方式: 使用官方地址生成项目:https://start.spring.io/ 使用STS 2. 使用@RestController注解 3.字段的返回 @JsonIgnore 不会返回到前端 @JsonFormat 格式化信息 @JsonInclude 设置条件是否包含信息(是 阅读全文
posted @ 2018-09-05 11:08 BigOrang 阅读(490) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示