上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页
摘要: @Configuration public class MyWebMvcConfig implements WebMvcConfigurer { //注册了新的访问路径 @Override public void addResourceHandlers(ResourceHandlerRegistry 阅读全文
posted @ 2019-12-13 11:49 一半人生 阅读(282) 评论(0) 推荐(0) 编辑
摘要: @RequestMapping("/alls") public String allsinfo(HttpSession session, HttpServletRequest request,Model model){ session.setAttribute("username","小张sessi 阅读全文
posted @ 2019-12-11 12:58 一半人生 阅读(817) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-12-11 09:49 一半人生 阅读(1095) 评论(0) 推荐(0) 编辑
摘要: thymeleaf名称空间 <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> 1 阅读全文
posted @ 2019-12-11 09:26 一半人生 阅读(2239) 评论(0) 推荐(0) 编辑
摘要: 1、webjars:springboot中以jar包形式引入的静态资源 所有 /webjars/** ,都去classpath:/META-INF/resources/webjars/找资源; webjars官网:https://www.webjars.org/ 导入静态资源后,资源访问路径为: 如 阅读全文
posted @ 2019-12-10 09:42 一半人生 阅读(479) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/f658fed35786 阅读全文
posted @ 2019-12-09 13:18 一半人生 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 组件样式 面包屑导航栏 js Vue.component('bannerOne', { created() { console.log(this.bigbackColor); }, props: { imgSrc: { type: String, default: 'images/aboutYaot 阅读全文
posted @ 2019-12-04 14:11 一半人生 阅读(1480) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2019-12-03 15:00 一半人生 阅读(1111) 评论(0) 推荐(0) 编辑
摘要: 解释一下,@SpringBootApplication其实就是以下三个注解的总和@Configuration: 用于定义一个配置类@EnableAutoConfiguration :Spring Boot会自动根据你jar包的依赖来自动配置项目。@ComponentScan: 告诉Spring 哪个 阅读全文
posted @ 2019-11-22 15:22 一半人生 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 自己仿站jeep官网在制作商城时,商品详情页面需要带着一个商品的信息,商品的配置,配置对应的颜色,商品的图片 如图 首先设计业务bean 一辆车的信息 业务一对多的大业务bean,继承Car.java 几个list的类型不做赘述,本博客主要讲映射 对应的marrp.xml中设置 创建 <result 阅读全文
posted @ 2019-11-21 16:07 一半人生 阅读(324) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页