各种jar包的问题

整合

html整合thymeleaf与shiro

		xmlns:th="http://www.thymeleaf.org"
      	xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro"

SpringBoot整合Shiro

		<!--引入shiro-->
        <dependency>
            <groupId>org.apache.shiro</groupId>
            <artifactId>shiro-spring-boot-starter</artifactId>
            <version>1.5.3</version>
        </dependency>

SpringBoot集成Swagger依赖

SpringFox SwaggerII

# 整合



## html整合thymeleaf与shiro

​```html
		xmlns:th="http://www.thymeleaf.org"
      	xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro"
​```









## SpringBoot整合Shiro

​```jave
		<!--引入shiro-->
        <dependency>
            <groupId>org.apache.shiro</groupId>
            <artifactId>shiro-spring-boot-starter</artifactId>
            <version>1.5.3</version>
        </dependency>
​```





## SpringBoot集成Swagger依赖





springboot2.5.1

swagger2	2.9.2

测试了这个版本可以使用



### SpringFox SwaggerII

​```xml
<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 -->
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger2</artifactId>
    <version>2.9.2</version>
</dependency>

​```



### SpringFox Swagger UI

​```xml
<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui -->
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger-ui</artifactId>
    <version>2.9.2</version>
</dependency>

​```

#### 扩展

好看的swagger页面(完善了一些功能)

访问localhost:8080/doc.html

​```xml
<dependency>
   <groupId>com.github.xiaoymin</groupId>
   <artifactId>swagger-bootstrap-ui</artifactId>
   <version>1.9.1</version>
</dependency>
​```







ScheduledService:定时任务



## 邮件任务

版本太低会出问题

​```xml
		<!--邮件-->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-mail</artifactId>
			<version>2.2.6.RELEASE</version>
		</dependency>
​```




































































SpringFox Swagger UI

<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui -->
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger-ui</artifactId>
    <version>2.9.2</version>
</dependency>

posted @ 2022-04-27 19:26  Az-Xm  阅读(38)  评论(0)    收藏  举报