摘要:
1、创建Maven工程,必须继承spring-boot-stater-parent工程 2、编写Controller实现业务逻辑 3、编写启动类,添加一个main方法,添加注解@SpringBootApplication 4、启动main方法 阅读全文
摘要:
<?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/X 阅读全文
摘要:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" > <web-app> <context-param> <param-name>contextConfigLocation</param-name> < 阅读全文
摘要:
1 <properties> 2 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 3 <maven.compiler.source>1.7</maven.compiler.source> 4 <maven.compiler.target>1.7</maven.compiler.target> 5 <spring. 阅读全文
摘要:
1、导入依赖 2、spring-mvc.xml配置 3、web.xml配置 4、自定义一个核心控制类 5、页面配置 阅读全文
摘要:
1、引入核心约束 2、创建Spring配置文件 3、创建接口 4、创建接口实现类 5、创建测试类 阅读全文
摘要:
IDEA工具下的mybatis快速入门 1、添加依赖(在pox.xml文件下添加) 2、编写pojo对象(即表中的实体类) 3、编写映射文件(xxxMapper.xml) 4、编写核心配置文件(SqlMapConfig.xml) 5、测试框架 阅读全文
摘要:
1、pageHelper环境搭建 2、配置文件:配置的是mybatis的pageHelper插件,mybatis插件已集成spring配置文件中 第一种:直接在spring配置文件中进行书写 第二种:引入外部mybatis配置文件 3、书写service层接口及实现类 4、测试 阅读全文
摘要:
1、Ctrl+Tab+D 2、点击 “+” 号 》Data Source 》MySQL 3、①将Driver:MySQL改成MySQL for 5.1 ②输入数据库地址、账号、密码 阅读全文
摘要:
for(int i=0;i<10;i++){ } 快速重写父类方法 阅读全文