传送门https://www.cnblogs.com/ljsh/p/10928106.html
总结
maven的依赖
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.7.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependencies>
<!-- 数据库连接池 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.25</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.16</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
会简单使用到的注解
@SpringBootApplication
@Service
@Autowired
@Mapper
@Controller
@RequestMapping
项目扔到github上 https://github.com/shenshaonian/2020
下一步,加个插曲,明天把对dao层的本地单元测试弄出来。
然后在做,额看公司代码,赶紧学习,希望试用期可以通过,好难,以后没机会混日子了。
通过阿里服务器,用appolo配置,springboot管理数据连接,快速简单实现后端系统。
项目里面还有问题。前端界面不展示,盲猜是springmvc,配置文件,thymeleaf使用的问题
浙公网安备 33010602011771号