diff --git a/JtProject/pom.xml b/JtProject/pom.xml
index 4ae3260..a1de54c 100644
--- a/JtProject/pom.xml
+++ b/JtProject/pom.xml
@@ -52,16 +52,10 @@
-
-
-
- com.mysql
- mysql-connector-j
- 8.3.0
diff --git a/JtProject/src/main/java/com/jtspringproject/JtSpringProject/controller/UserController.java b/JtProject/src/main/java/com/jtspringproject/JtSpringProject/controller/UserController.java
index 4556eaf..05d5834 100644
--- a/JtProject/src/main/java/com/jtspringproject/JtSpringProject/controller/UserController.java
+++ b/JtProject/src/main/java/com/jtspringproject/JtSpringProject/controller/UserController.java
@@ -65,7 +65,7 @@ public ModelAndView indexPage()
{
ModelAndView mView = new ModelAndView("index");
String username = SecurityContextHolder.getContext().getAuthentication().getName();
- mView.addObject("user", username);
+ mView.addObject("username", username);
List products = this.productService.getProducts();
if (products.isEmpty()) {
diff --git a/JtProject/src/main/java/com/jtspringproject/JtSpringProject/dao/userDao.java b/JtProject/src/main/java/com/jtspringproject/JtSpringProject/dao/userDao.java
index 0861e4d..f597f1f 100644
--- a/JtProject/src/main/java/com/jtspringproject/JtSpringProject/dao/userDao.java
+++ b/JtProject/src/main/java/com/jtspringproject/JtSpringProject/dao/userDao.java
@@ -70,7 +70,7 @@ public boolean userExists(String username) {
@Transactional
public User getUserByUsername(String username) {
- Query query = sessionFactory.getCurrentSession().createQuery("from CUSTOMER where username = :username");
+ Query query = sessionFactory.getCurrentSession().createQuery("from User where username = :username", User.class);
query.setParameter("username", username);
try {