小技巧

(RedisConnectionFactory factory)  

報錯

----------

刪除spring下的 xml redis配置文件

 

 

The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'org.springframework.mail.javamail.JavaMailSenderImpl' in your configuration.

spring.mail.host=smtp.qq.com
[email protected]
spring.mail.password=1222222
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true

 

Caused by: java.lang.NullPointerException: null
    at java.io.File.<init>(File.java:277) ~[na:1.8.0_221]
    at com.hy.oa.service.game.TeamService.<clinit>(TeamService.java:35) ~[classes/:na]
    ... 24 common frames omitted

--------------

靜態類

添加一個app 再util 裏面的confutil裏面

 

.factory.BeanCreationException: Error creating bean with name 'freeMarkerConfigurer' defined in class path resource [org/springframework/boot/autoconfigure/

--------------------------

修改版本 2.3.39

 

<!-- https://mvnrepository.com/artifact/org.springframework.session/spring-session -->
<dependency>
    <groupId>org.springframework.session</groupId>
    <artifactId>spring-session</artifactId>
    <version>1.3.0.RELEASE</version>
</dependency>

java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.task.TaskSchedulingAutoConfiguration.taskScheduler

上面的那個版本換成1.3.5就即解決了seession,又解決了taskscheduler

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章