摘要: 在一开始接触的时候,不少人都会将三者混淆,误以为所谓的分布式高并发的系统就是能同时供海量用户访问,而采用多线程手段不就是可以提供系统的并发能力吗? 实际上,他们三个总是相伴而生,但侧重点又有不同。 什么是分布式? 分布式更多的一个概念,是为了解决单个物理服务器容量和性能瓶颈问题而采用的优化手段。 该 阅读全文
posted @ 2019-10-14 08:31 Pei你看雪 阅读(11) 评论(0) 推荐(0)
摘要: java中我们想要实现多线程常用的有两种方法,继承Thread 类和实现Runnable 接口,有经验的程序员都会选择实现Runnable接口 ,其主要原因有以下两点: 首先,java只能单继承,因此如果是采用继承Thread的方法,那么在以后进行代码重构的时候可能会遇到问题,因为你无法继承别的类了 阅读全文
posted @ 2019-10-12 17:04 Pei你看雪 阅读(9) 评论(0) 推荐(0)
摘要: SpringBoot注入Mapper失败,可能是因为没有加扫描Mapper层的注解 解决方法 方式一:在所有mapper接口使用@Mapper注解 @Mapper public interface UserMapper { UserInfo getUserById(@Param("userId") 阅读全文
posted @ 2019-10-12 10:17 Pei你看雪 阅读(70) 评论(0) 推荐(0)
摘要: 可以在评论区交流!!! 前端: html代码: <form enctype="multipart/form-data" id="batchUpload" class="form-horizontal"> <button class="btn btn-success btn-xs" id="uploa 阅读全文
posted @ 2019-10-12 09:24 Pei你看雪 阅读(10) 评论(0) 推荐(0)
摘要: 1. Servlet使用配置 创建Servlet需要首先需要创建一个Servlet类,并且这个类需要继承HttpServlet,然后重写doGet()/doPost()方法实现业务逻辑流程。TestServlet.java代码如下: public class TestServlet extends 阅读全文
posted @ 2019-09-27 15:50 Pei你看雪 阅读(19) 评论(0) 推荐(0)
摘要: Description: The bean 'userService' could not be injected as a 'com.phy.hemanresoruce.service.UserService' because it is a JDK dynamic proxy that impl 阅读全文
posted @ 2019-09-23 14:30 Pei你看雪 阅读(36) 评论(0) 推荐(0)
摘要: template: “class path resource [templates/emp/list.html]”模板解析过程中出错(模板:“类路径资源[templates/emp/list.html]”) 我一开始的想法就是错误的,这个问题和模板引擎本身毫无关系,回归原题,这个的错误是thymel 阅读全文
posted @ 2019-09-20 17:47 Pei你看雪 阅读(2642) 评论(0) 推荐(0)
摘要: Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Fri Sep 20 09:52:49 CST 2019 There wa 阅读全文
posted @ 2019-09-20 09:58 Pei你看雪 阅读(2) 评论(0) 推荐(0)