摘要: 一.SpringBoot在web编程中的"约定大于配置"(WebMvcAutoConfiguration) 1.静态资源默认路径,如果没用thymeleaf可以localhost:8080/Xxx.html访问到 "classpath:/META-INF/resources/", "classpat 阅读全文
posted @ 2020-09-17 14:34 远亭 阅读(137) 评论(0) 推荐(0)
摘要: 一.spring-boot的spring-beans.xml与配置类 (一)@ImportResource(locations="{classpath:spring.xml}") SpringBoot不会自动识别spring-beans.xml文件,所以需要用@ImportResource来进行引入 阅读全文
posted @ 2020-09-17 10:45 远亭 阅读(521) 评论(0) 推荐(0)
摘要: 一:spring-boot,强大的依赖管理整合功能,根据习惯优于配置约定,进行去配置化(spring全家桶套件,javaee中涉及的技术) @SpringBootApplication的三大注解意义 1.@spring @SpringBootConfigruation包含@Configruation 阅读全文
posted @ 2020-09-16 12:24 远亭 阅读(625) 评论(0) 推荐(0)
摘要: 一.本地的包添加依赖 1.执行mvn install:install-file -Dfile=D:\*\lib\aspose-words-16.8.0.jar -DgroupId=aspose -DartifactId=aspose-words -Dversion=16.8.0 -Dpackagin 阅读全文
posted @ 2020-09-13 12:17 远亭 阅读(325) 评论(0) 推荐(0)
摘要: 日志内容过长且使用get方式导致了"请求筛选模块被配置为拒绝包含的查询字符串过长的请求。"问题解决:1,在Web.config中添加<system.web> <httpRuntime maxRequestLength="999999999" maxQueryStringLength="2097151 阅读全文
posted @ 2019-10-08 11:10 远亭 阅读(801) 评论(0) 推荐(0)
摘要: 一.iis服务器设置 二.VS项目发布 1.css,js文件资源不加载 解决方法:在打开windows功能 中点选择internet信息服务-万维网服务-常见HTTP功能-静态内容 2.项目发布之后图片资源不显示 原因分析:应该是直接复制到项目资源路径,导致VS的解决方案没能自动识别 解决方法:方法 阅读全文
posted @ 2019-08-17 13:33 远亭 阅读(630) 评论(0) 推荐(0)
摘要: 第一,当sqlserver服务为MSSQLSERVER 用如下方式链接 using System.Data.SqlClient; SqlConnection conn = new SqlConnection(); string connectionString="server=.;database= 阅读全文
posted @ 2019-08-12 13:05 远亭 阅读(251) 评论(0) 推荐(0)