本文收录在个人博客:www.chengxy-nds.top,技术资料共享,同进步时间格式化在项目中使用频率是非常高的,当我们的API接口返回结果,需要对其中某一个date字段属性进行特殊的格式化处理,通常会用到SimpleDateFormat工具处理。SimpleDateFormatdateFormat=newSimpleDateFormat("yyyy-MM-dd");DatestationTi
分类:
编程语言 时间:
2020-09-16 12:03:06
阅读次数:
32
1.第一个springboot applicat.properties: server.port=80 可以更改运行端口号 banner.text 在resource文件夹中加入banner.text网上搜springboot的运行图行,添加进去就可以改变运行出来的图形了。banner.text: ...
分类:
编程语言 时间:
2020-09-15 21:06:58
阅读次数:
95
1.xxx-api是基于springboot的模块 2.配置文件 application.properties spring.profiles.active=@activeEnv@ application-dev.properties server.servlet.context-path=/api ...
分类:
其他好文 时间:
2020-09-14 19:22:29
阅读次数:
67
pom.xml文件 可以拿走直接用 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependenc ...
分类:
编程语言 时间:
2020-09-14 19:20:49
阅读次数:
50
Invalid bound statement (not found) ...
分类:
编程语言 时间:
2020-09-14 19:15:55
阅读次数:
50
springboot注解整理 常用注解: @SpringBootApplication:申明让spring boot自动给程序进行必要的配置,这个配置相当于: @Configuration,@EnableAutoConfiguration和 @ComponentScan三个配置。 @EnableAu ...
分类:
编程语言 时间:
2020-09-14 19:04:58
阅读次数:
33
@Scheduled所支持的参数: 1.cron:cron表达式,指定任务在特定时间执行;2.fixedDelay:表示上一次任务执行完成后多久再次执行,参数类型为long,单位ms;3.fixedDelayString:与fixedDelay含义一样,只是参数类型变为String;4.fixedR ...
分类:
编程语言 时间:
2020-09-14 18:57:29
阅读次数:
129
服务器下配置springboot项目开机自启 Linux版本 Centos7详细步骤如下: 第一种方式: 1在/etc/init.d/目录下创建shell启动脚本autojar.sh cd /etc/init.d/ touch autojar.sh vi autojar.sh 内容如下: #!/bi ...
分类:
编程语言 时间:
2020-09-14 18:54:42
阅读次数:
36
Java架构师之SpringBoot Cloud微服务框架精通必学入门到高级 ...
分类:
编程语言 时间:
2020-09-14 18:49:26
阅读次数:
38
1、导入Mybatis包 使用maven <!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter --> <dependency> <groupId>org.mybatis ...
分类:
编程语言 时间:
2020-09-12 21:45:32
阅读次数:
44