초기소스
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package com.wb.domainserver.domain.sample.service;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.bbs.bbs.vo.BOBbsVO;
|
||||
import com.wb.domainserver.domain.sample.mapper.SampleMapper;
|
||||
import com.wb.domainserver.domain.sample.vo.SampleVO;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@Service
|
||||
@Slf4j
|
||||
public class SampleService {
|
||||
|
||||
@Autowired
|
||||
private SampleMapper sampleMapper;
|
||||
|
||||
public String selectGconeDatabase(BOBbsVO vo) {
|
||||
|
||||
try {
|
||||
SampleVO vo1 = new SampleVO();
|
||||
vo1.setMessage1("1");;
|
||||
vo1.setMessage2("테스트1");;
|
||||
int gconeCount = sampleMapper.insertGconeCheck(vo1);
|
||||
String result = "gconeCount:"+gconeCount;
|
||||
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
log.error("Transaction failed: ", e);
|
||||
throw e; // 트랜잭션 롤백을 위해 예외를 다시 던집니다.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user