Skip to content

Commit b5a27af

Browse files
committed
Convert the java version 8 to Java 11 in pom.xml
1 parent 4128fc6 commit b5a27af

File tree

10 files changed

+23
-23
lines changed

10 files changed

+23
-23
lines changed

spring-aop-advice-examples/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/Application.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.guides.springboot2.springboot2jpacrudexample;
1+
package net.alanbinu.springboot2.springboot2jpacrudexample;
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;

spring-aop-advice-examples/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/SpringRestClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.guides.springboot2.springboot2jpacrudexample;
1+
package net.alanbinu.springboot2.springboot2jpacrudexample;
22

33
import java.util.Arrays;
44
import java.util.HashMap;
@@ -11,7 +11,7 @@
1111
import org.springframework.http.ResponseEntity;
1212
import org.springframework.web.client.RestTemplate;
1313

14-
import net.guides.springboot2.springboot2jpacrudexample.model.Employee;
14+
import net.alanbinu.springboot2.springboot2jpacrudexample.model.Employee;
1515

1616
public class SpringRestClient {
1717

spring-aop-advice-examples/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/aspect/LoggingAspect.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.guides.springboot2.springboot2jpacrudexample.aspect;
1+
package net.alanbinu.springboot2.springboot2jpacrudexample.aspect;
22

33
import java.util.Arrays;
44

@@ -30,7 +30,7 @@ public class LoggingAspect {
3030
* Run before the method execution.
3131
* @param joinPoint
3232
*/
33-
@Before("execution(* net.guides.springboot2.springboot2jpacrudexample.service.EmployeeService.addEmployee(..))")
33+
@Before("execution(* net.alanbinu.springboot2.springboot2jpacrudexample.service.EmployeeService.addEmployee(..))")
3434
public void logBefore(JoinPoint joinPoint) {
3535
log.debug("logBefore running .....");
3636
log.debug("Enter: {}() with argument[s] = {}", joinPoint.getSignature().getDeclaringTypeName(),
@@ -42,7 +42,7 @@ public void logBefore(JoinPoint joinPoint) {
4242
* Run after the method returned a result.
4343
* @param joinPoint
4444
*/
45-
@After("execution(* net.guides.springboot2.springboot2jpacrudexample.service.EmployeeService.addEmployee(..))")
45+
@After("execution(* net.alanbinu.springboot2.springboot2jpacrudexample.service.EmployeeService.addEmployee(..))")
4646
public void logAfter(JoinPoint joinPoint) {
4747
log.debug("logAfter running .....");
4848
log.debug("Enter: {}() with argument[s] = {}", joinPoint.getSignature().getDeclaringTypeName(),
@@ -54,7 +54,7 @@ public void logAfter(JoinPoint joinPoint) {
5454
* @param joinPoint
5555
* @param result
5656
*/
57-
@AfterReturning(pointcut = "execution(* net.guides.springboot2.springboot2jpacrudexample.service.EmployeeService.deleteEmployee(..))", returning = "result")
57+
@AfterReturning(pointcut = "execution(* net.alanbinu.springboot2.springboot2jpacrudexample.service.EmployeeService.deleteEmployee(..))", returning = "result")
5858
public void logAfterReturning(JoinPoint joinPoint, Object result) {
5959
log.debug("logAfterReturning running .....");
6060
log.debug("Enter: {}() with argument[s] = {}", joinPoint.getSignature().getDeclaringTypeName(),
@@ -68,7 +68,7 @@ public void logAfterReturning(JoinPoint joinPoint, Object result) {
6868
* @return
6969
* @throws Throwable
7070
*/
71-
@Around("execution(* net.guides.springboot2.springboot2jpacrudexample.service.EmployeeService.getEmployeeById(..))")
71+
@Around("execution(* net.alanbinu.springboot2.springboot2jpacrudexample.service.EmployeeService.getEmployeeById(..))")
7272
public Object logAround(ProceedingJoinPoint joinPoint) throws Throwable {
7373
log.debug("logAround running .....");
7474
if (log.isDebugEnabled()) {
@@ -97,7 +97,7 @@ public Object logAround(ProceedingJoinPoint joinPoint) throws Throwable {
9797
* @param e exception
9898
*/
9999

100-
@AfterThrowing(pointcut = "execution(* net.guides.springboot2.springboot2jpacrudexample.service.EmployeeService.updateEmployee(..))", throwing = "error")
100+
@AfterThrowing(pointcut = "execution(* net.alanbinu.springboot2.springboot2jpacrudexample.service.EmployeeService.updateEmployee(..))", throwing = "error")
101101
public void logAfterThrowing(JoinPoint joinPoint, Throwable error) {
102102
log.debug("logAfterThrowing running .....");
103103
log.error("Exception in {}.{}() with cause = {}", joinPoint.getSignature().getDeclaringTypeName(),

spring-aop-advice-examples/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/controller/EmployeeController.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.guides.springboot2.springboot2jpacrudexample.controller;
1+
package net.alanbinu.springboot2.springboot2jpacrudexample.controller;
22

33
import java.util.List;
44
import java.util.Map;
@@ -16,9 +16,9 @@
1616
import org.springframework.web.bind.annotation.RequestMapping;
1717
import org.springframework.web.bind.annotation.RestController;
1818

19-
import net.guides.springboot2.springboot2jpacrudexample.exception.ResourceNotFoundException;
20-
import net.guides.springboot2.springboot2jpacrudexample.model.Employee;
21-
import net.guides.springboot2.springboot2jpacrudexample.service.EmployeeService;
19+
import net.alanbinu.springboot2.springboot2jpacrudexample.exception.ResourceNotFoundException;
20+
import net.alanbinu.springboot2.springboot2jpacrudexample.model.Employee;
21+
import net.alanbinu.springboot2.springboot2jpacrudexample.service.EmployeeService;
2222

2323
@RestController
2424
@RequestMapping("/api/v1")

spring-aop-advice-examples/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/exception/ErrorDetails.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.guides.springboot2.springboot2jpacrudexample.exception;
1+
package net.alanbinu.springboot2.springboot2jpacrudexample.exception;
22

33
import java.util.Date;
44

spring-aop-advice-examples/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/exception/GlobalExceptionHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.guides.springboot2.springboot2jpacrudexample.exception;
1+
package net.alanbinu.springboot2.springboot2jpacrudexample.exception;
22

33
import java.util.Date;
44

spring-aop-advice-examples/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/exception/ResourceNotFoundException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.guides.springboot2.springboot2jpacrudexample.exception;
1+
package net.alanbinu.springboot2.springboot2jpacrudexample.exception;
22

33
import org.springframework.http.HttpStatus;
44
import org.springframework.web.bind.annotation.ResponseStatus;

spring-aop-advice-examples/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/model/Employee.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.guides.springboot2.springboot2jpacrudexample.model;
1+
package net.alanbinu.springboot2.springboot2jpacrudexample.model;
22

33
import javax.persistence.Column;
44
import javax.persistence.Entity;

spring-aop-advice-examples/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/repository/EmployeeRepository.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package net.guides.springboot2.springboot2jpacrudexample.repository;
1+
package net.alanbinu.springboot2.springboot2jpacrudexample.repository;
22

33
import org.springframework.data.jpa.repository.JpaRepository;
44
import org.springframework.stereotype.Repository;
55

6-
import net.guides.springboot2.springboot2jpacrudexample.model.Employee;
6+
import net.alanbinu.springboot2.springboot2jpacrudexample.model.Employee;
77

88
@Repository
99
public interface EmployeeRepository extends JpaRepository<Employee, Long>{

spring-aop-advice-examples/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/service/EmployeeService.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.guides.springboot2.springboot2jpacrudexample.service;
1+
package net.alanbinu.springboot2.springboot2jpacrudexample.service;
22

33
import java.util.HashMap;
44
import java.util.List;
@@ -8,9 +8,9 @@
88
import org.springframework.beans.factory.annotation.Autowired;
99
import org.springframework.stereotype.Service;
1010

11-
import net.guides.springboot2.springboot2jpacrudexample.exception.ResourceNotFoundException;
12-
import net.guides.springboot2.springboot2jpacrudexample.model.Employee;
13-
import net.guides.springboot2.springboot2jpacrudexample.repository.EmployeeRepository;
11+
import net.alanbinu.springboot2.springboot2jpacrudexample.exception.ResourceNotFoundException;
12+
import net.alanbinu.springboot2.springboot2jpacrudexample.model.Employee;
13+
import net.alanbinu.springboot2.springboot2jpacrudexample.repository.EmployeeRepository;
1414

1515
/**
1616
* Employee Service

0 commit comments

Comments
 (0)