Spring MVC项目中页面重定向一般使用return "redirect:/other/controller/";即可。而Spring Boot使用了@RestController注解,上述写法只能返回字符串,解决方法如下: 将一个HttpSer…
angular 4 路由 使用cli命令创建根路由模块 ng g cl app.router 或自己建一个路由配置文件 如:app/app.router.ts // app/app.router.ts // 将文件修改为 import { Route…
要实现这个功能需要用到trunc这个函数对时间的操作 1 2 3 4 5 6 7 8 select trunc(sysdate) from dual --2014-12-27 今天的日期为2014-12-27 select trunc(sysda…
1.环境设置 [root@oracle ~]# cat /etc/redhat-release CentOS release 6.9 (Final) [root@oracle ~]# python -V Python 2.6.6 版本:…
The ngx_http_sub_module module is a filter that modifies a response by replacing one specified string by another. This module…
curl是一个命令行方式下传输数据的开源传输工具,支持多种协议:FTP、HTTP、HTTPS、IMAP、POP3、TELNET等,功能超级强大。 我今天想说的是程序开发中常用的模拟Form提交 1、GET提交 特别简单直接写url里面 2、POST提…
有时候我们会随手建立一些小的java项目,写点代码,尝试点什么功能。如果使用到什么第三方库,把它们导入起来总觉得是一件麻烦事: 手动下载jar包,在IDE中层层设置,还要处理它们的依赖 使用IDE提供的从maven库下载 使用maven, gradl…
请通过下面方式下载本系列文章的Github演示样例代码: git clone https://github.com/davenkin/gradle-learning.git 在前面的文章中我们讲到,设置和读取Project的Property是使用Gr…
最近在尝试使用gradle代替maven创建web项目 在build.gradle文件中,使用mavenLocal() 发现并不生效 [html] repositories { mavenLocal() //直接使用本地maven仓库 …