摘要: Spring Boot 官网的介绍推荐的模板引擎Thymeleaf。 Spring Boot项目出现的异常: template might not exist or might not be accessible by any of the configured Template Resolvers 阅读全文
posted @ 2018-03-30 17:39 stujike123456 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: 配置到本地出错: 解决方法: 1、先把原来的服务删除了 2、在重新配置服务。 真的,我就是这样的。。 阅读全文
posted @ 2018-03-30 17:29 stujike123456 阅读(144) 评论(0) 推荐(0) 编辑
摘要: SpringMVC中四个基本注解: @Component、@Repository @Service、@Controller 看字面含义,很容易却别出其中三个: @Controller 控制层,就是我们的action层 @Service 业务逻辑层,就是我们的service或者manager层 @Re 阅读全文
posted @ 2018-03-30 16:07 stujike123456 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1、@Component 在持久层、业务层和控制层中,分别采用@Repository、@Service和@Controller对分层中的类进行凝视,而用@Component对那些比较中立的类进行凝视。 spring注解中@component就是说把这个类交给Spring管理。 2、spring作用在 阅读全文
posted @ 2018-03-30 15:54 stujike123456 阅读(165) 评论(0) 推荐(0) 编辑
摘要: @Configuration标注在类上,相当于把该类作为spring的xml配置文件中的<beans>,作用为:配置spring容器(应用上下文) 阅读全文
posted @ 2018-03-30 14:15 stujike123456 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 把redis注册为本地服务 1、在redis的根目录下输入 :redis-server.exe --service-install redis.windows.conf 2、在本地的服务中 就会出现: 3、在服务中就能启动redis了 4、下面是redis的另外的知识 命令规整 注册服务 redis 阅读全文
posted @ 2018-03-30 10:35 stujike123456 阅读(758) 评论(0) 推荐(0) 编辑
摘要: 方法一:先形成桌面的计算机(此电脑)的快捷方式 1、点击打开电脑左下角的文档图标 2、点击左边导航里面的桌面 3、我们会看到在桌面文件夹中是有 计算机(或者此电脑)这个图标的,然后右键创建快捷方式 4、桌面上就会有计算机快捷方式的图标,我们可以把快捷方式这几个字删掉。 然后有人说这个只是快捷方式,和 阅读全文
posted @ 2018-03-30 10:20 stujike123456 阅读(49931) 评论(0) 推荐(0) 编辑