- 博客(7)
- 收藏
- 关注
原创 ssm配置
ssm配置环境首先引入依赖 <!--直接引入web项目所有依赖--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.3.15</version> </dependency> &l
2022-03-14 16:10:59
924
原创 MacOS mysql 5.7 更改编码,utf-8
因为Mac的dmg文件在安装过程中并没有选择编码的步骤,而是默认的编码Latein1的格式,导致了中文乱码的问题。到网上也查询了不少,一些细节需要注意。1一、修改.cnf文件。在etc目录下面新建一个cnf文件:my.cnfvim /etc/my.cnf 没有这个文件会新建,若有就会打开进行修改。添加编码内容:# Example MySQL config file for small systems.## This is for a system with little memory (&
2022-03-14 16:02:27
1127
原创 SpringMVC文件上传
SpringMVC文件上传我们先引入依赖<dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.1</version></dependency>xml 方式配置引入完成后,在SpringMVC中配置<
2022-02-19 23:57:19
209
原创 SpringMVC引入和配置thymeleaf
SpringMVC 引入和配置thymeleafpom.xml中引入依赖<dependency> <groupId>org.thymeleaf</groupId> <artifactId>thymeleaf</artifactId> <version>3.0.11.RELEASE</version></dependency>如果有springMVC文件则配置如下内容 <bean cl
2022-02-19 23:47:08
657
原创 JAVA后台解决跨域问题
跨域问题前后端都能解决,推荐后端解决,以springboot 为例子第一种方法:一劳永逸 编写配置类@Configuration// 加入spring ioc容器中public class configCross implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**")
2021-08-05 12:00:07
168
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅