摘要: package com.aaa.lee.shiro; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.*; import org.apache.shiro.config.IniSecurityManagerFactory; import org.apache.shiro.mgt.SecurityManager 阅读全文
posted @ 2019-08-19 14:50 送外卖的小菜鸟 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 一、使用场景,页面中,循环遍历,获得控制器穿过来的值。 1.1 控制器 1.2 HTML页面 1.3 跳到后台,再跳到HTML页面。 二、页面取值。 2.1 控制器 2.2 页面 阅读全文
posted @ 2019-08-19 11:35 送外卖的小菜鸟 阅读(2906) 评论(0) 推荐(0) 编辑
摘要: 一、分布式项目,需要使用maven搭建。 1.1 父级pro.xml module。 1.2 子级项目之间的依赖关系、 mapper 》 依赖 model service 》mapper web 》service 阅读全文
posted @ 2019-08-19 10:54 送外卖的小菜鸟 阅读(1260) 评论(0) 推荐(0) 编辑
摘要: 一、1.1父级工程导入jar包。 springboot已经完整把thymeleaf集成进框架中了,可以直接添加使用不需要任何的配置信息 1.2 子级重写。 二、 配置文件application.properties中的配置。(主要是1.启用不严谨的HTML检查方式。2.关闭缓存。) 三、HTML 页 阅读全文
posted @ 2019-08-19 10:48 送外卖的小菜鸟 阅读(485) 评论(0) 推荐(0) 编辑
摘要: # 插件 进行配置 也可以用yml # 1. 配置 Tomcat 修改端口号 server.port=8848 server.context-path=/zxf #2.配置数据源 spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/qy 阅读全文
posted @ 2019-08-19 10:39 送外卖的小菜鸟 阅读(3948) 评论(0) 推荐(0) 编辑
摘要: package com.aaa.zxf.service; import com.aaa.zxf.mapper.BookMapper; import com.aaa.zxf.model.Book; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.S 阅读全文
posted @ 2019-08-19 10:36 送外卖的小菜鸟 阅读(1649) 评论(0) 推荐(0) 编辑
摘要: package com.aaa.zxf; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * ... 阅读全文
posted @ 2019-08-19 10:34 送外卖的小菜鸟 阅读(880) 评论(0) 推荐(0) 编辑
摘要: package com.aaa.zxf.mapper; import com.aaa.zxf.model.Book; import org.apache.ibatis.annotations.*; import org.mybatis.spring.annotation.MapperScan; import java.util.List; /** * 1. mapper 层中 是接口,定义各种功能 阅读全文
posted @ 2019-08-19 10:30 送外卖的小菜鸟 阅读(13009) 评论(2) 推荐(0) 编辑
摘要: package com.aaa.zxf.interceptor; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet. 阅读全文
posted @ 2019-08-19 10:26 送外卖的小菜鸟 阅读(300) 评论(0) 推荐(0) 编辑
摘要: package com.aaa.zxf.config; import org.springframework.boot.SpringBootConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation. 阅读全文
posted @ 2019-08-19 10:07 送外卖的小菜鸟 阅读(401) 评论(0) 推荐(0) 编辑