diff --git a/README.md b/README.md index 0f63c75..6c33c29 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ # springmvc-ws + +[api-docs](http://localhost:8080/mobile-app-ws/v2/api-docs) + +[swagger-ui](http://localhost:8080/mobile-app-ws/swagger-ui.html) \ No newline at end of file diff --git a/src/main/java/com/appsdeveloperblog/app/ws/io/repository/UserRepository.java b/src/main/java/com/appsdeveloperblog/app/ws/io/repository/UserRepository.java index 1ae406f..ed7d40f 100644 --- a/src/main/java/com/appsdeveloperblog/app/ws/io/repository/UserRepository.java +++ b/src/main/java/com/appsdeveloperblog/app/ws/io/repository/UserRepository.java @@ -19,21 +19,21 @@ public interface UserRepository extends PagingAndSortingRepository findAllUsersWithConfirmedEmailAddress( Pageable pageableRequest ); - @Query(value="select * from Users u where u.first_name = ?1",nativeQuery=true) + @Query(value="select * from users u where u.first_name = ?1",nativeQuery=true) List findUserByFirstName(String firstName); - @Query(value="select * from Users u where u.last_name = :lastName",nativeQuery=true) + @Query(value="select * from users u where u.last_name = :lastName",nativeQuery=true) List findUserByLastName(@Param("lastName") String lastName); - @Query(value="select * from Users u where first_name LIKE %:keyword% or last_name LIKE %:keyword%",nativeQuery=true) + @Query(value="select * from users u where first_name LIKE %:keyword% or last_name LIKE %:keyword%",nativeQuery=true) List findUsersByKeyword(@Param("keyword") String keyword); - @Query(value="select u.first_name, u.last_name from Users u where u.first_name LIKE %:keyword% or u.last_name LIKE %:keyword%",nativeQuery=true) + @Query(value="select u.first_name, u.last_name from users u where u.first_name LIKE %:keyword% or u.last_name LIKE %:keyword%",nativeQuery=true) List findUserFirstNameAndLastNameByKeyword(@Param("keyword") String keyword); @Transactional diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 623efb0..ad1fca4 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,8 +1,14 @@ -spring.datasource.username=sergey -spring.datasource.password=sergey +#spring.datasource.username=root +#spring.datasource.password=1234567890 #spring.datasource.url=jdbc:mysql://localhost:3306/photo_app spring.jpa.hibernate.ddl-auto=update -tokenSecret = jf9i4jgu83nfl0jfu57ejf7 +tokenSecret=jf9i4jgu83nfl0jfu57ejf7 server.servlet.context-path=/mobile-app-ws server.port=8080 -spring.h2.console.enabled=true \ No newline at end of file +spring.h2.console.enabled=true +debug=true +#logger.debug=true +#logging.level.=DEBUG +logging.level.org.springframework.web=DEBUG +#logging.level.org.hibernate=ERROR +spring.jpa.properties.hibernate.format_sql=true \ No newline at end of file