Skip to content

Commit

Permalink
Merge pull request #4 from urinaner/develop
Browse files Browse the repository at this point in the history
feat: 빈 등록
  • Loading branch information
urinaner authored Nov 6, 2024
2 parents 5536cc7 + ef8ac9d commit 7217ad0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/org/yj/sejongauth/config/AutoConfig.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
package org.yj.sejongauth.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.yj.sejongauth.controller.Sj;
import org.yj.sejongauth.domain.AuthService;
import org.yj.sejongauth.domain.ProfileService;

@Configuration
@ComponentScan("org.yj.sejongauth")
public class AutoConfig {
}
@Bean
public Sj sj(AuthService authService, ProfileService profileService) {
return new Sj(authService, profileService);
}
}
2 changes: 2 additions & 0 deletions src/main/java/org/yj/sejongauth/domain/AuthService.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
import java.net.URISyntaxException;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;

@Service
public class AuthService {
private String jsessionId;
private final String SJ_LOGIN_URL = "https://classic.sejong.ac.kr/userLogin.do";
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/yj/sejongauth/domain/ProfileService.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
import java.net.URL;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.springframework.stereotype.Service;

@Service
public class ProfileService {
private final String PROFILE_URL = "http://classic.sejong.ac.kr/userCertStatus.do?menuInfoId=MAIN_02_05";
private final String FAIDED_PROFILE = "정보 조회에 실패하였습니다.";
Expand Down

0 comments on commit 7217ad0

Please sign in to comment.