上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 28 下一页
摘要: ![](https://img2022.cnblogs.com/blog/2181692/202203/2181692-20220303164621373-1409614944.png) ![](https://img2022.cnblogs.com/blog/2181692/202203/2181692-20220303164729748-494285801.png) 阅读全文
posted @ 2022-03-03 16:48 卡卡发 阅读(304) 评论(0) 推荐(0)
摘要: 1)jdbc Sping Data 官网:https://spring.io/projects/spring-data 数据库相关的启动器 :可以参考官方文档: https://docs.spring.io/spring-boot/docs/2.2.5.RELEASE/reference/htmls 阅读全文
posted @ 2022-03-03 16:16 卡卡发 阅读(158) 评论(0) 推荐(0)
摘要: 抛异常与try catch的区别? 抛异常只能说能快速的将标红的地方解放出来,但后期查找程序错误的地方时,会很困难 try catch通过打印catch里面特定的输出语句,可以很快判断出异常出现的位置,在以后工作中,代码量很大的时候尤其节约时间. 为什么事务必用try catch捕捉异常? 根据事务 阅读全文
posted @ 2022-03-03 12:40 卡卡发 阅读(117) 评论(0) 推荐(0)
摘要: springboot默认打包为jar包,jar包是一个压缩包,但是jsp不支持在压缩包内编译,因此springboot默认不支持jsp Spring官方支持的服务的渲染模板有Thymeleaf和Freemarker等,Thymeleaf是用来开发Web和独立环境项目的服务器端的Java模版引擎 缺点 阅读全文
posted @ 2022-03-03 11:54 卡卡发 阅读(117) 评论(0) 推荐(0)
摘要: @PathVariablev 路径变量 @RequestHeaderN 获取请求头 @RequestParams 获取请求参数 @CookieValue 获取cookie值 @RequestBody 获取请求体 @MatrixVariable 矩阵变量 阅读全文
posted @ 2022-03-03 10:54 卡卡发 阅读(23) 评论(0) 推荐(0)
摘要: 欢迎页 静态资源目录下 /static /public /resources /META-INF/resources 的index.html就是欢迎页 注意:此时不能配置静态资源的访问前缀,不然会出错,如下注掉后就可以正常访问: 2.controller能处理/index favicon 同样也是将 阅读全文
posted @ 2022-02-25 13:28 卡卡发 阅读(49) 评论(0) 推荐(0)
摘要: 1)默认的静态资源目录 静态资源放在类路径下: /static /public /resources /META-INF/resources 访问 : 当前项目根路径/静态资源名 访问顺序: 请求进来,先去找Controller看能不能处理。【此处controller里面没有RequestMappi 阅读全文
posted @ 2022-02-25 11:29 卡卡发 阅读(92) 评论(0) 推荐(0)
摘要: 实现热部署,项目或者页面修改以后:Ctrl+F9 实时生效 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</o 阅读全文
posted @ 2022-02-24 16:02 卡卡发 阅读(197) 评论(0) 推荐(0)
摘要: @Conditional;@ConditionalOnClass;@ConditionalOnBean;@Configuration;@Bean;@Component;@Import;@EnableConfigurationProperties ;@ConfigurationProperties 阅读全文
posted @ 2022-02-17 15:20 卡卡发 阅读(32) 评论(0) 推荐(0)
摘要: 在改了本机名字后,命令提示行中显示的名字以及本地用户文件夹名字还没有改过来 因此想要修改如下图所示显示的名字: 1.切换到administrator用户 用管理员方式打开命令提示符窗口 输入net user administrator /active:yes 注销当前用户,登录administrat 阅读全文
posted @ 2022-02-11 10:37 卡卡发 阅读(7911) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 28 下一页