![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Springboot
棉花糖one.
学到老
展开
-
SpringBoot项目去除内嵌tomcat
SpringBoot内嵌tomcat,直接run Application即可,那么我们如何去除内嵌的tomcat,使用自己的呢? 一、pom.xml(去除内嵌tomcat后,需要添加servlet依赖) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <!-- 去除内转载 2020-08-08 09:51:49 · 909 阅读 · 0 评论 -
springboot项目打包成jar包
方式一: 在pom.xml文件中定义启动类的名称 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId>转载 2020-08-02 20:46:33 · 7560 阅读 · 3 评论 -
springboot的@EnableTransactionManagement这注解是不是多余的?
问题: 百度说要用事务,需要在启动类加上@EnableTransactionManagement。 但是我都没加,一样可以用@Transactional注解来控制事务。 解答 @EnableTransactionManagement是 spring-tx 的注解,不是 spring-boot 的 spring-boot 会自动配置事务,相关的配置在 org.springframework.boot...转载 2020-04-15 14:00:29 · 1058 阅读 · 3 评论