摘要: package com.example.demo.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; impo 阅读全文
posted @ 2021-05-06 19:01 ascertain 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 上面这个会造成如上错误 引入如下依赖 TestController.java package com.example.demo.controller; import org.springframework.stereotype.Controller; import org.springframewo 阅读全文
posted @ 2021-05-06 18:32 ascertain 阅读(26) 评论(0) 推荐(0) 编辑
摘要: public resources static 下的文件可直接访问, 优先级 resources > static > public index.html favicon.ico 阅读全文
posted @ 2021-05-06 17:31 ascertain 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 跟踪 application.properties 最后生效 将端口改为9000 实体类 无参构造 有参构造 Getter Setter @Override Dog package com.example.demo.pojo; import org.springframework.beans.fac 阅读全文
posted @ 2021-05-06 16:27 ascertain 阅读(52) 评论(0) 推荐(0) 编辑
摘要: https://start.spring.io/ import this project 打包 "C:\Program Files\Java\jdk1.8.0_291\bin\java.exe" -Dmaven.multiModuleProjectDirectory=F:\demo "-Dmaven 阅读全文
posted @ 2021-05-06 13:11 ascertain 阅读(57) 评论(0) 推荐(0) 编辑