Hej, uczę się pomału Springa. Chciałem do tego kodu: https://github.com/Incybro/SpringSite/settings dodać OAuth według tego poradnika: https://www.youtube.com/watch?v=IOgCMtYMr2Q&list=PLcoE64orFoVsxAam_BuQBrNC8IO238SwH&index=2
Dla pewności skopiowałem wszystkie pliki, poprawiłem import, aby zgadzał się z nazwą mojego projektu i cokolwiek bym nie zrobił dostaję ten error:
Error:(7, 73) java: package org.springframework.security.oauth2.config.annotation.configurers does not exist Error:(8, 79) java: package
org.springframework.security.oauth2.config.annotation.web.configuration does not exist Error:(9, 79) java: package
org.springframework.security.oauth2.config.annotation.web.configuration does not exist Error:(10, 77) java: package
org.springframework.security.oauth2.config.annotation.web.configurers does not exist Error:(11, 77) java: package
org.springframework.security.oauth2.config.annotation.web.configurers does not exist Error:(20, 48) java: cannot find symbol symbol: class AuthorizationServerConfigurerAdapter
Error:(19, 2) java: cannot find symbol symbol: class EnableAuthorizationServer
Error:(35, 27) java: cannot find symbol symbol: class AuthorizationServerEndpoints
Configurer location: class com.github.SpringSite.config.AuthorizationServerConfig
...
Problem dotyczy plików w folderze "config".
Link do kodu źródłowego z odcinka: https://github.com/arocketman/SpringBlog
Jak to naprawić? Posiadam wszystkie zależności:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-oauth2</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
<scope>test</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<type>jar</type>
</dependency>
</dependencies>