-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e926d84
commit 837b590
Showing
4 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/com/content/dev_back/controller/dao/LoginDao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.content.dev_back.controller.dao; | ||
|
||
import org.springframework.jdbc.core.JdbcTemplate; | ||
import org.springframework.stereotype.Repository; | ||
import com.content.dev_back.repository.contentRepo; | ||
|
||
import javax.sql.DataSource; | ||
|
||
|
||
@Repository | ||
public class LoginDao { | ||
private JdbcTemplate jdbcTemplate; | ||
|
||
// @Autowired | ||
public void setDataSource(DataSource dataSource){ | ||
this.jdbcTemplate = new JdbcTemplate(dataSource); | ||
} | ||
|
||
public long checkUser(String email, String passwd){ | ||
String checksql = "SELECT email,passwd FROM login;"; | ||
|
||
System.out.println(checksql); | ||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters