首页 > 其他分享 >新建SpringBoot项目,界面没有出现Maven

新建SpringBoot项目,界面没有出现Maven

时间:2025-01-10 12:33:25浏览次数:3  
标签:界面 SpringBoot spring boot Maven mybatis org com

问题描述:新建SpringBoot项目,即使选择Maven,项目建成后,依旧没有加载上Maven的jar包

侧边栏未出现Maven,External Libraries为空

解决办法:

1.在pom.xml中添加依赖

<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>

		<dependency>
			<groupId>com.mysql</groupId>
			<artifactId>mysql-connector-j</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>com.baomidou</groupId>
			<artifactId>mybatis-plus-boot-starter</artifactId>
			<version>3.5.5</version>
		</dependency>
		<dependency>
			<groupId>com.baomidou</groupId>
			<artifactId>mybatis-plus-generator</artifactId>
			<version>3.5.5</version>
		</dependency>
		<dependency>
			<groupId>org.freemarker</groupId>
			<artifactId>freemarker</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-core</artifactId>
			<version>5.7.11</version>
		</dependency>
		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis-spring</artifactId>
			<version>3.0.3</version>
		</dependency>
		<dependency>
			<groupId>com.alibaba.fastjson2</groupId>
			<artifactId>fastjson2</artifactId>
			<version>2.0.37</version>
		</dependency>

	</dependencies>

2.右击pom.xml,选择Add as Maven Project,等几分钟就出现了

标签:界面,SpringBoot,spring,boot,Maven,mybatis,org,com
From: https://blog.csdn.net/m0_69407675/article/details/145053796

相关文章