農農 |
|
||
2019年12月14日
摘要:
1 创建entity实体类 public class Student { private Integer stuid; private String stuname; public Integer getStuid() { return stuid; } public void setStuid(I 阅读全文
摘要:
1 创建实体类 public class Student { private Integer stuid; private String stuname; public Integer getStuid() { return stuid; } public void setStuid(Integer 阅读全文
2019年12月12日
摘要:
1 创建entity实体类并生成数据库表 @Entity @Table(name="student") public class Student { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer stuid; 阅读全文
摘要:
1 编写application.yml文件 spring: mvc: view: suffix: .jsp prefix: /jsp/ 2 创建Controller层 @Controller @RequestMapping("/jspfirst") public class JSPRequestCo 阅读全文
摘要:
1 编写application.properties文件 spring.thymeleaf.prefix=classpath:/templates/ spring.thymeleaf.suffix=.html spring.thymeleaf.mode=HTML5 spring.thymeleaf. 阅读全文
2019年12月10日
摘要:
一、SpringBoot入门 1. SpringBoot简介 Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置。 2. SpringBoot特性 2.1 阅读全文
2019年12月9日
摘要:
一、向本地仓库导入Dubbox依赖 1.1解压压缩包 1.2打开cmd窗口切到源码包路径 1.3输入命令行 1.4成功后展示如图 1.5输入命令行 1.6成功后如图 public class DoSomeServiceImpl implements DoSomeService { @Override 阅读全文
2019年12月6日
摘要:
一对多 1、application.properties 2、Dao层 3.Controller 3.1级联添加数据 3.2查询数据 3.3删除数据 多对多 1.查询 2.添加 阅读全文
2019年12月2日
摘要:
登陆案例 一、创建Service项目存放共同数据 1.1 创建实体类 private long id; private String loginName; private String userName; private String password; private long userpayme 阅读全文
2019年11月30日
摘要:
一、导入依赖 <dependency> <groupId>javaee</groupId> <artifactId>javaee-api</artifactId> <version>5</version> </dependency> <dependency> <groupId>junit</grou 阅读全文
|
Copyright © 2024 Baekhyunne
Powered by .NET 8.0 on Kubernetes |