- 博客(3)
- 收藏
- 关注
转载 SpringMVC常用注解@Controller,@Service,@repository,@Component
@Repository(value="xxxDao")注解是告诉Spring,让Spring创建一个名字叫“xxxDao”的xxxDaoImpl实例。 当Service需要使用Spring创建的名字叫“userDao”的UserDaoImpl实例时,就可以使用@Resource(name = "userDao")注解告诉Spring,Spring把创建好的userDao注入给Service即可。 ...
2020-04-23 17:46:11
402
原创 springboot连接mysql报错问题的解决
配置与mysql相关的属性 打开application.properties,属性配置如下: spring.datasource.url=jdbc:mysql://127.0.0.1:3306/registration?characterEncoding=utf-8&serverTimezone=GMT%2B8 spring.datasource.username=root spring...
2020-04-23 09:25:47
843
转载 为什么BufferedReader比Scanner速度快?
为什么BufferedReader比Scanner速度快? 出处:http://blog.csdn.net/linxdcn/article/details/72886231 碰巧做一道算法题的时候碰到关于Scanner和BufferedReader区别的题。 图中运行时间长的采用的是Scanner输入,占用内存也更大 接下来我们分析一下为什么Scanner比BufferReader慢很多。 (1...
2020-04-20 17:42:39
1359
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅