最后
面试前一定少不了刷题,为了方便大家复习,我分享一波个人整理的面试大全宝典
- Java核心知识整理
Java核心知识
- Spring全家桶(实战系列)
- 其他电子书资料
Step3:刷题
既然是要面试,那么就少不了刷题,实际上春节回家后,哪儿也去不了,我自己是刷了不少面试题的,所以在面试过程中才能够做到心中有数,基本上会清楚面试过程中会问到哪些知识点,高频题又有哪些,所以刷题是面试前期准备过程中非常重要的一点。
以下是我私藏的面试题库:
随便加几条数据:
4.创建实体类
public class User {
private int id;
private String username;
private String password;
…
setter /getter 省略
5.创建Mapper
public interface UserMapper {
@Select(“select * from User where id = #{id}”)
User getById(long id);
}
6.创建service 接口
public interface IUserService {
User getById(int id);
}
7.创建service实现类
@Service
public class UserServiceImpl implements IUserService {
@Autowired
private UserMapper userMapper;
@Override
public User getById(int id) {
return userMapper.getById(id);
}
}
8.在User Controller 中添加
@Autowired
private IUserService userService;
@RequestMapping(“get”)
@ResponseBody
public User getUser(int id) {
System.out.println(id);
return userService.getById(id);
}
9.在SpringBootDemoApplication 中加入
@MapperScan(“com.example.demo.mapper”)
写在最后
还有一份JAVA核心知识点整理(PDF):JVM,JAVA集合,JAVA多线程并发,JAVA基础,Spring原理,微服务,Netty与RPC,网络,日志,Zookeeper,Kafka,RabbitMQ,Hbase,MongoDB,Cassandra,设计模式,负载均衡,数据库,一致性哈希,JAVA算法,数据结构,加密算法,分布式缓存,Hadoop,Spark,Storm,YARN,机器学习,云计算…
面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码】](https://bbs.csdn.net/forums/4f45ff00ff254613a03fab5e56a57acb)收录**