摘要: #include <iostream> using namespace std; void swap(int *& a, int *& b) { int * tmp = a; a = b; b = tmp; } int main() { int a = 3,b = 5; int * pa = & a 阅读全文
posted @ 2022-02-19 22:34 icefield817 阅读(28) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; class A { public: int x; int getX() { return x; } }; void swap(A & a,A & b) { int tmp = a.x; a.x = b.x; b.x = 阅读全文
posted @ 2022-02-19 22:31 icefield817 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 第一种:局部配置 1、使用配置方式: 在需要接受Date参数的Controller实现接口WebBindingInitializer,实现方法initBinder(WebDataBinder binder, WebRequest request) @Controller public class U 阅读全文
posted @ 2021-05-30 15:35 icefield817 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 使用IDEA搭建SSM(spring+springmvc+mybatis)框架 新建Maven项目,选择从原型创建,选择org.apache.maven.archetypes:maven-archetype-webapp 填写项目名,坐标等,最后点击完成,等待一段时间项目创建完成。 创建完成后引入j 阅读全文
posted @ 2021-05-29 20:24 icefield817 阅读(197) 评论(0) 推荐(0) 编辑
摘要: CSS代码 html { filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale 阅读全文
posted @ 2021-05-29 00:54 icefield817 阅读(146) 评论(0) 推荐(0) 编辑