java找不到符号 类_得到错误java:找不到符号类

我使用spring mvc + spring boot hibernate。在我运行应用程序之前突然出现这个错误。下面是错误mesage得到错误java:找不到符号类

C:\用户\ User_2 \ PDRM \ SRC \主\的java \ COM \示例\ RegisterController.java 错误:(23,19)的java:无法找到符号 符号:类Default_profilesRepository 位置:包com。示例 错误:(33,13)的java:无法找到符号 符号:类Default_profilesRepository 位置:类com.example.RegisterController

这里RegisterController类

package com.example;

import com.example.*;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Controller;

import org.springframework.ui.Model;

import org.springframework.validation.BindingResult;

import org.springframework.validation.Errors;

import org.springframework.web.bind.annotation.*;

import org.springframework.web.context.request.WebRequest;

import javax.validation.Valid;

import java.io.UnsupportedEncodingException;

import java.math.BigInteger;

import java.security.MessageDigest;

import java.security.NoSuchAlgorithmException;

import java.util.Date;

import java.util.UUID;

import static jdk.nashorn.internal.objects.NativeString.substr;

@Controller

public class RegisterController {

@Autowired

private Default_profilesRepository profilesRepository;

@Autowired

private Default_usersRepository usersRepository;

@RequestMapping("/login")

public String Login(Model model)

{

model.addAttribute("user", new Default_users());

return "login";

}

@RequestMapping("/loginProcess")

public String loginProcess(@ModelAttribute(value="user") @Valid Default_users user, BindingResult bindingResultUser)

{

if(bindingResultUser.hasErrors())

{

return "login";

}

Default_users user2 = usersRepository.findByEmail(user.getEmail());

if (user2 != null) {

String passwordToHash = user.getPassword();

String saltDB = user2.getSalt();

String Password = null;

你可能感兴趣的:(java找不到符号,类)