Skip to content

Commit

Permalink
利用するversionをSpring4.1からSpring4.3に変更。
Browse files Browse the repository at this point in the history
  • Loading branch information
hasegawadanna committed Jan 11, 2018
1 parent cee47a9 commit 8364a64
Show file tree
Hide file tree
Showing 37 changed files with 50 additions and 56 deletions.
4 changes: 2 additions & 2 deletions training1-answer/.project
Expand Up @@ -11,12 +11,12 @@
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
Expand Down
2 changes: 1 addition & 1 deletion training1-answer/pom.xml
Expand Up @@ -7,7 +7,7 @@
<name>training1-answer</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions training1/.project
Expand Up @@ -11,12 +11,12 @@
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
Expand Down
2 changes: 1 addition & 1 deletion training1/pom.xml
Expand Up @@ -7,7 +7,7 @@
<name>training1</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions training2-answer/.project
Expand Up @@ -11,12 +11,12 @@
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
Expand Down
2 changes: 1 addition & 1 deletion training2-answer/pom.xml
Expand Up @@ -7,7 +7,7 @@
<name>training2-answer</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
Expand Up @@ -9,8 +9,8 @@
@Service("messageService")
public class MessageServiceImpl implements MessageService {
@Autowired
MessageRepository messageRepository;

private MessageRepository messageRepository;
public Message findOne() {
return messageRepository.findOne();
}
Expand Down
4 changes: 2 additions & 2 deletions training2/.project
Expand Up @@ -11,12 +11,12 @@
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
Expand Down
2 changes: 1 addition & 1 deletion training2/pom.xml
Expand Up @@ -7,7 +7,7 @@
<name>training2</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
Expand Up @@ -6,7 +6,7 @@
//TODO 演習2 不足しているアノテーションを記述しなさい
public class MessageServiceImpl implements MessageService {
//TODO 演習2 不足しているアノテーションを記述しなさい
MessageRepository messageRepository;
private MessageRepository messageRepository;

public Message findOne() {
return messageRepository.findOne();
Expand Down
4 changes: 2 additions & 2 deletions training3-answer/.project
Expand Up @@ -11,12 +11,12 @@
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
Expand Down
2 changes: 1 addition & 1 deletion training3-answer/pom.xml
Expand Up @@ -6,7 +6,7 @@
<name>training3-answer</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
Expand Up @@ -5,7 +5,7 @@

public class MessageServiceImpl implements MessageService {

MessageRepository messageRepository;
private MessageRepository messageRepository;

public MessageServiceImpl(MessageRepository messageRepository) {
this.messageRepository = messageRepository;
Expand Down
4 changes: 2 additions & 2 deletions training3/.project
Expand Up @@ -11,12 +11,12 @@
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
Expand Down
2 changes: 1 addition & 1 deletion training3/pom.xml
Expand Up @@ -7,7 +7,7 @@
<name>training3</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
Expand Up @@ -7,7 +7,7 @@
public class MessageServiceImpl implements MessageService {

// TODO 演習3 アノテーションがないことを確認
MessageRepository messageRepository;
private MessageRepository messageRepository;

public MessageServiceImpl(MessageRepository messageRepository) {
this.messageRepository = messageRepository;
Expand Down
4 changes: 2 additions & 2 deletions training4-answer/.project
Expand Up @@ -11,12 +11,12 @@
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
Expand Down
2 changes: 1 addition & 1 deletion training4-answer/pom.xml
Expand Up @@ -6,7 +6,7 @@
<name>training4-answer</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
Expand Up @@ -9,7 +9,7 @@
@Service("messageService")
public class MessageServiceImpl implements MessageService {
@Autowired
MessageRepository messageRepository;
private MessageRepository messageRepository;

public Message findOne() {
return messageRepository.findOne();
Expand Down
Expand Up @@ -7,12 +7,12 @@
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.junit4.SpringRunner;

import com.example.business.domain.Message;
import com.example.business.service.MessageService;

@RunWith(SpringJUnit4ClassRunner.class)
@RunWith(SpringRunner.class)
@ContextConfiguration(locations = { "./config/applicationContext.xml" })
public class MessageServiceTest {
@Autowired
Expand Down
4 changes: 2 additions & 2 deletions training4/.project
Expand Up @@ -11,12 +11,12 @@
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
Expand Down
2 changes: 1 addition & 1 deletion training4/pom.xml
Expand Up @@ -6,7 +6,7 @@
<name>training4</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
Expand Up @@ -9,7 +9,7 @@
@Service("messageService")
public class MessageServiceImpl implements MessageService {
@Autowired
MessageRepository messageRepository;
private MessageRepository messageRepository;

public Message findOne() {
return messageRepository.findOne();
Expand Down
6 changes: 0 additions & 6 deletions training5-answer/.project
Expand Up @@ -15,14 +15,8 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.springframework.ide.eclipse.core.springnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
Expand Down
8 changes: 4 additions & 4 deletions training5-answer/pom.xml
Expand Up @@ -2,11 +2,11 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<version>1.0.0</version>
<name>training5-answer</name>
<artifactId>training5-answer</artifactId>
<name>training5</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down Expand Up @@ -64,6 +64,6 @@
</plugin>
</plugins>
</build>
<artifactId>training5-answer</artifactId>
<version>1.0.0</version>
<description>Spring Core Training</description>
</project>
Expand Up @@ -9,7 +9,7 @@
@Service("messageService")
public class MessageServiceImpl implements MessageService {
@Autowired
MessageRepository messageRepository;
private MessageRepository messageRepository;

public Message findOne() {
return messageRepository.findOne();
Expand Down
4 changes: 2 additions & 2 deletions training5/.project
Expand Up @@ -11,12 +11,12 @@
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
Expand Down
2 changes: 1 addition & 1 deletion training5/pom.xml
Expand Up @@ -6,7 +6,7 @@
<name>training5</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
Expand Up @@ -9,7 +9,7 @@
@Service("messageService")
public class MessageServiceImpl implements MessageService {
@Autowired
MessageRepository messageRepository;
private MessageRepository messageRepository;

public Message findOne() {
return messageRepository.findOne();
Expand Down
2 changes: 1 addition & 1 deletion training6-answer/pom.xml
Expand Up @@ -8,7 +8,7 @@
<name>training6-answer</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
Expand Up @@ -13,7 +13,7 @@
@Transactional
public class EmployeeServiceImpl implements EmployeeService {
@Autowired
EmployeeRepository employeeRepository;
private EmployeeRepository employeeRepository;

public List<Employee> findAll() {
return employeeRepository.findAll();
Expand Down
2 changes: 1 addition & 1 deletion training6/pom.xml
Expand Up @@ -8,7 +8,7 @@
<name>training6</name>

<properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
Expand Up @@ -12,7 +12,7 @@
//TODO 演習6 トランザクションのためのアノテーションを記述する
public class EmployeeServiceImpl implements EmployeeService {
@Autowired
EmployeeRepository employeeRepository;
private EmployeeRepository employeeRepository;

public List<Employee> findAll() {
return employeeRepository.findAll();
Expand Down
2 changes: 1 addition & 1 deletion training7-answer/pom.xml
Expand Up @@ -8,7 +8,7 @@
<name>training7-answer</name>

<properties>
<org.springframework-version>4.2.8.RELEASE</org.springframework-version>
<org.springframework-version>4.3.13.RELEASE</org.springframework-version>
</properties>

<dependencies>
Expand Down
Expand Up @@ -13,7 +13,7 @@
@Transactional
public class EmployeeServiceImpl implements EmployeeService {
@Autowired
EmployeeRepository employeeRepository;
private EmployeeRepository employeeRepository;

public List<Employee> findAll() {
return employeeRepository.findAll();
Expand Down

0 comments on commit 8364a64

Please sign in to comment.