Changeset 3ded84d in Git
- Timestamp:
- 01/18/22 17:18:17 (3 years ago)
- Branches:
- main
- Children:
- e0ef1b1
- Parents:
- 7fafead
- Files:
-
- 2 added
- 18 deleted
- 53 edited
Legend:
- Unmodified
- Added
- Removed
-
WeDiscussMovies
-
Property commit
changed from
7bc8942e641cbe9fd658da84125ccf38b30063c9
tob0668497570836d8e1ef69a2b998471e386c1684
-
Property commit
changed from
-
pom.xml
r7fafead r3ded84d 22 22 <artifactId>spring-boot-starter-jdbc</artifactId> 23 23 </dependency> 24 <dependency>25 <groupId>org.springframework.boot</groupId>26 <artifactId>spring-boot-starter-security</artifactId>27 </dependency>24 <!-- <dependency>--> 25 <!-- <groupId>org.springframework.boot</groupId>--> 26 <!-- <artifactId>spring-boot-starter-security</artifactId>--> 27 <!-- </dependency>--> 28 28 <dependency> 29 29 <groupId>org.springframework.boot</groupId> … … 71 71 <artifactId>h2</artifactId> 72 72 </dependency> 73 <dependency> 74 <groupId>com.jcraft</groupId> 75 <artifactId>jsch</artifactId> 76 <version>0.1.55</version> 77 </dependency> 78 </dependencies> 73 79 74 75 76 </dependencies>77 80 78 81 <build> -
project.iml
r7fafead r3ded84d 8 8 <datasource-mapping> 9 9 <factory-entry name="entityManagerFactory" /> 10 <factory-entry name="noname-a.xml@0" value="14a5fbd7-f501-41df-a0af-e3b168b536f7" /> 10 11 <factory-entry name="project" value="14a5fbd7-f501-41df-a0af-e3b168b536f7" /> 11 12 </datasource-mapping> … … 52 53 <orderEntry type="library" name="Maven: org.springframework:spring-beans:5.3.14" level="project" /> 53 54 <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.3.14" level="project" /> 54 <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-security:2.6.2" level="project" />55 <orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.14" level="project" />56 <orderEntry type="library" name="Maven: org.springframework.security:spring-security-config:5.6.1" level="project" />57 <orderEntry type="library" name="Maven: org.springframework:spring-context:5.3.14" level="project" />58 <orderEntry type="library" name="Maven: org.springframework.security:spring-security-web:5.6.1" level="project" />59 <orderEntry type="library" name="Maven: org.springframework:spring-expression:5.3.14" level="project" />60 55 <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-thymeleaf:2.6.2" level="project" /> 61 56 <orderEntry type="library" name="Maven: org.thymeleaf:thymeleaf-spring5:3.0.14.RELEASE" level="project" /> … … 78 73 <orderEntry type="library" name="Maven: org.springframework:spring-web:5.3.14" level="project" /> 79 74 <orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.3.14" level="project" /> 75 <orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.14" level="project" /> 76 <orderEntry type="library" name="Maven: org.springframework:spring-context:5.3.14" level="project" /> 77 <orderEntry type="library" name="Maven: org.springframework:spring-expression:5.3.14" level="project" /> 80 78 <orderEntry type="library" name="Maven: org.thymeleaf.extras:thymeleaf-extras-springsecurity5:3.0.4.RELEASE" level="project" /> 81 79 <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.32" level="project" /> … … 114 112 <orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.8.4" level="project" /> 115 113 <orderEntry type="library" scope="TEST" name="Maven: org.springframework.security:spring-security-test:5.6.1" level="project" /> 116 <orderEntry type="library" name="Maven: org.springframework.security:spring-security-core:5.6.1" level="project" /> 117 <orderEntry type="library" name="Maven: org.springframework.security:spring-security-crypto:5.6.1" level="project" /> 114 <orderEntry type="library" scope="TEST" name="Maven: org.springframework.security:spring-security-core:5.6.1" level="project" /> 115 <orderEntry type="library" scope="TEST" name="Maven: org.springframework.security:spring-security-crypto:5.6.1" level="project" /> 116 <orderEntry type="library" scope="TEST" name="Maven: org.springframework.security:spring-security-web:5.6.1" level="project" /> 118 117 <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-jpa:2.6.2" level="project" /> 119 118 <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.6.2" level="project" /> … … 138 137 <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.6.2" level="project" /> 139 138 <orderEntry type="library" name="Maven: com.h2database:h2:1.4.200" level="project" /> 139 <orderEntry type="library" name="Maven: com.jcraft:jsch:0.1.55" level="project" /> 140 140 </component> 141 141 </module> -
src/main/java/com/wediscussmovies/project/WeDiscussMoviesApplication.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project; 2 2 3 import org.springframework.beans.factory.annotation.Autowired; 4 import org.springframework.boot.CommandLineRunner; 3 5 import org.springframework.boot.SpringApplication; 4 6 import org.springframework.boot.autoconfigure.SpringBootApplication; 7 import org.springframework.jdbc.core.JdbcTemplate; 5 8 6 9 @SpringBootApplication … … 8 11 9 12 public static void main(String[] args) { 13 10 14 SpringApplication.run(WeDiscussMoviesApplication.class, args); 11 15 } 12 16 17 13 18 } -
src/main/java/com/wediscussmovies/project/exception/MovieIdNotFoundException.java
r7fafead r3ded84d 2 2 3 3 public class MovieIdNotFoundException extends RuntimeException{ 4 public MovieIdNotFoundException( Longid){4 public MovieIdNotFoundException(Integer id){ 5 5 super("Movie with that id=" + id + " does not exist!"); 6 6 } -
src/main/java/com/wediscussmovies/project/repository/DiscussionRepository.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model.Discussion;4 3 import org.springframework.data.jpa.repository.JpaRepository; 5 4 import org.springframework.stereotype.Repository; 6 5 7 6 import java.util.List; 7 import com.wediscussmovies.project.model.*; 8 8 9 9 @Repository -
src/main/java/com/wediscussmovies/project/repository/GenreRepository.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model. Genre;3 import com.wediscussmovies.project.model.*; 4 4 import org.springframework.data.jpa.repository.JpaRepository; 5 5 import org.springframework.stereotype.Repository; … … 9 9 @Repository 10 10 public interface GenreRepository extends JpaRepository<Genre, Integer> { 11 public List<Genre> findAllByGenre (String genre_type);11 public List<Genre> findAllByGenreType(String genre); 12 12 } -
src/main/java/com/wediscussmovies/project/repository/MovieRepository.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model.Movie;4 3 import org.springframework.data.jpa.repository.JpaRepository; 5 4 import org.springframework.stereotype.Repository; 6 5 7 6 import java.util.List; 7 import com.wediscussmovies.project.model.*; 8 8 9 9 @Repository -
src/main/java/com/wediscussmovies/project/repository/PersonRepository.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model. Person;3 import com.wediscussmovies.project.model.*; 4 4 import com.wediscussmovies.project.model.enumerations.PersonType; 5 5 import org.springframework.data.jpa.repository.JpaRepository; 6 import org.springframework.data.jpa.repository.Query;7 6 import org.springframework.stereotype.Repository; 8 7 … … 12 11 @Repository 13 12 public interface PersonRepository extends JpaRepository<Person, Integer> { 14 public List<Person> findAllBy PersonType(PersonTypetype);15 public List<Person> findAllBy PersonTypeAndNameLike(PersonTypetype, String name);16 public List<Person> findAllBy PersonTypeAndSurnameLike(PersonTypetype, String surname);17 public Optional<Person> findPersonByPerson _idAndPersonType(Integer id, PersonTypetype);13 public List<Person> findAllByType(Character type); 14 public List<Person> findAllByTypeAndNameLike(Character type, String name); 15 public List<Person> findAllByTypeAndSurnameLike(Character type, String surname); 16 public Optional<Person> findPersonByPersonIdAndType(Integer id, Character type); 18 17 } -
src/main/java/com/wediscussmovies/project/repository/ReplyRepository.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model.Reply;4 3 import org.springframework.data.jpa.repository.JpaRepository; 5 4 import org.springframework.stereotype.Repository; 5 import com.wediscussmovies.project.model.*; 6 6 7 7 8 @Repository -
src/main/java/com/wediscussmovies/project/repository/UserRepository.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.repository; 2 2 3 import com.wediscussmovies.project.model. User;3 import com.wediscussmovies.project.model.*; 4 4 import org.springframework.data.jpa.repository.JpaRepository; 5 5 import org.springframework.stereotype.Repository; 6 6 7 import java.util.EnumMap;8 7 import java.util.Optional; 9 8 -
src/main/java/com/wediscussmovies/project/service/DiscussionService.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.service; 2 2 3 import com.wediscussmovies.project.model. Discussion;3 import com.wediscussmovies.project.model.*; 4 4 5 5 import java.util.List; -
src/main/java/com/wediscussmovies/project/service/GenreService.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.service; 2 2 3 import com.wediscussmovies.project.model. Genre;3 import com.wediscussmovies.project.model.*; 4 4 import org.springframework.stereotype.Service; 5 5 -
src/main/java/com/wediscussmovies/project/service/MovieService.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.service; 2 2 3 import com.wediscussmovies.project.model. Movie;3 import com.wediscussmovies.project.model.*; 4 4 5 5 import java.util.List; … … 9 9 public List<Movie> listAll(); 10 10 public List<Movie> searchByTitle(String title); 11 public Optional<Movie> findById( Longid);11 public Optional<Movie> findById(Integer id); 12 12 public Movie save(Movie movie); 13 public void deleteById( Longid);13 public void deleteById(Integer id); 14 14 } -
src/main/java/com/wediscussmovies/project/service/PersonService.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.service; 2 2 3 import com.wediscussmovies.project.model. Person;3 import com.wediscussmovies.project.model.*; 4 4 5 5 import java.util.List; -
src/main/java/com/wediscussmovies/project/service/UserService.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.service; 2 2 3 import com.wediscussmovies.project.model. User;3 import com.wediscussmovies.project.model.*; 4 4 5 5 import javax.servlet.http.HttpServletRequest; -
src/main/java/com/wediscussmovies/project/service/impl/DiscussionServiceImpl.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.service.impl; 2 2 3 import com.wediscussmovies.project.model. Discussion;3 import com.wediscussmovies.project.model.*; 4 4 import com.wediscussmovies.project.repository.DiscussionRepository; 5 5 import com.wediscussmovies.project.service.DiscussionService; -
src/main/java/com/wediscussmovies/project/service/impl/GenreServiceImpl.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.service.impl; 2 2 3 import com.wediscussmovies.project.model. Genre;3 import com.wediscussmovies.project.model.*; 4 4 import com.wediscussmovies.project.repository.GenreRepository; 5 5 import com.wediscussmovies.project.service.GenreService; … … 24 24 @Override 25 25 public List<Genre> findAllByType(String genre) { 26 return genreRepository.findAllByGenre (genre);26 return genreRepository.findAllByGenreType(genre); 27 27 } 28 28 29 29 @Override 30 30 public Genre save(String genreName) { 31 31 Genre genre = new Genre(genreName); 32 32 return genreRepository.save(genre); 33 33 } -
src/main/java/com/wediscussmovies/project/service/impl/MovieServiceImpl.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.service.impl; 2 2 3 import com.wediscussmovies.project.model. Movie;3 import com.wediscussmovies.project.model.*; 4 4 import com.wediscussmovies.project.repository.MovieRepository; 5 5 import com.wediscussmovies.project.service.MovieService; … … 23 23 24 24 @Override 25 public Optional<Movie> findById( Longid) {25 public Optional<Movie> findById(Integer id) { 26 26 return movieRepository.findById(1); 27 27 } … … 33 33 34 34 @Override 35 public void deleteById( Longid) {36 movieRepository.deleteById( 0);35 public void deleteById(Integer id) { 36 movieRepository.deleteById(id); 37 37 } 38 38 -
src/main/java/com/wediscussmovies/project/service/impl/PersonServiceImpl.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.service.impl; 2 2 3 import com.wediscussmovies.project.model. Person;3 import com.wediscussmovies.project.model.*; 4 4 import com.wediscussmovies.project.model.enumerations.PersonType; 5 5 import com.wediscussmovies.project.repository.PersonRepository; … … 21 21 @Override 22 22 public List<Person> findAllDirectors() { 23 return personRepository.findAllBy PersonType(PersonType.D);23 return personRepository.findAllByType('D'); 24 24 } 25 25 26 26 @Override 27 27 public Optional<Person> findActorById(Integer id) { 28 return personRepository.findPersonByPerson _idAndPersonType(id, PersonType.A);28 return personRepository.findPersonByPersonIdAndType(id, 'A'); 29 29 } 30 30 … … 36 36 @Override 37 37 public Optional<Person> findDirectorById(Integer id) { 38 return personRepository.findPersonByPerson _idAndPersonType(id, PersonType.D);38 return personRepository.findPersonByPersonIdAndType(id, 'D'); 39 39 } 40 40 41 41 @Override 42 42 public List<Person> findAllActors() { 43 return personRepository.findAllBy PersonType(PersonType.A);43 return personRepository.findAllByType('A'); 44 44 } 45 45 … … 54 54 @Override 55 55 public List<Person> findActorsByNameLike(String name) { 56 return personRepository.findAllBy PersonTypeAndNameLike(PersonType.A, name);56 return personRepository.findAllByTypeAndNameLike('A', name); 57 57 } 58 58 59 59 @Override 60 60 public List<Person> findActorsBySurnameLike(String surname) { 61 return personRepository.findAllBy PersonTypeAndSurnameLike(PersonType.A, surname);61 return personRepository.findAllByTypeAndSurnameLike('A', surname); 62 62 } 63 63 64 64 @Override 65 65 public List<Person> findDirectorsByNameLike(String name) { 66 return personRepository.findAllBy PersonTypeAndNameLike(PersonType.D, name);66 return personRepository.findAllByTypeAndNameLike('D', name); 67 67 } 68 68 69 69 @Override 70 70 public List<Person> findDirectorsBySurnameLike(String surname) { 71 return personRepository.findAllBy PersonTypeAndSurnameLike(PersonType.D, surname);71 return personRepository.findAllByTypeAndSurnameLike('D', surname); 72 72 } 73 73 } -
src/main/java/com/wediscussmovies/project/service/impl/ReplyServiceImpl.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.service.impl; 2 2 3 import com.wediscussmovies.project.model. Reply;3 import com.wediscussmovies.project.model.*; 4 4 import com.wediscussmovies.project.repository.ReplyRepository; 5 5 import com.wediscussmovies.project.service.ReplyService; -
src/main/java/com/wediscussmovies/project/service/impl/UserServiceImpl.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.service.impl; 2 2 3 import com.wediscussmovies.project.model.PasswordEncoder; 4 import com.wediscussmovies.project.model.User; 3 import com.wediscussmovies.project.model.*; 5 4 import com.wediscussmovies.project.model.exception.PasswordsDontMatchException; 6 5 import com.wediscussmovies.project.model.exception.UserWithEmailAlreadyExists; … … 8 7 import com.wediscussmovies.project.repository.UserRepository; 9 8 import com.wediscussmovies.project.service.UserService; 10 import org.springframework.http.HttpRequest;11 9 import org.springframework.stereotype.Service; 12 10 13 11 import javax.servlet.http.HttpServletRequest; 14 import java.security.NoSuchAlgorithmException;15 12 import java.util.Optional; 16 13 -
src/main/java/com/wediscussmovies/project/web/controller/DiscussionsController.java
r7fafead r3ded84d 2 2 3 3 import com.wediscussmovies.project.model.*; 4 import com.wediscussmovies.project.model.enumerations.DiscussionType; 4 5 5 import com.wediscussmovies.project.service.DiscussionService; 6 6 import com.wediscussmovies.project.service.MovieService; … … 14 14 import java.sql.Date; 15 15 import java.time.LocalDate; 16 import java.util.ArrayList;17 16 import java.util.List; 18 17 import java.util.Optional; … … 80 79 if(discussion.isEmpty()) 81 80 return "redirect:/discussions"; 82 Reply reply = new Reply(discussion.get(), user, date, text);83 replyService.save(reply);81 //Reply reply = new Reply(discussion.get(), user, date, text); 82 // replyService.save(reply); 84 83 return "redirect:/discussions/"+id; 85 84 } … … 103 102 return "redirect:/login"; 104 103 } 105 Long movie_id = (Long) request.getSession().getAttribute("movieId");104 Integer movie_id = (Integer) request.getSession().getAttribute("movieId"); 106 105 request.getSession().setAttribute("movieId", null); 107 106 Optional<Movie> movieOp = movieService.findById(movie_id); 108 107 if(movieOp.isEmpty()) 109 108 return "redirect:/movies"; 110 Discussion discussion = new Discussion(DiscussionType.M,text, title, Date.valueOf(LocalDate.now()),user,movieOp.get(),null,new ArrayList<>());111 discussionService.save(discussion);109 // Discussion discussion = new Discussion('M',text, title, Date.valueOf(LocalDate.now()),user,movieOp.get(),null); 110 // discussionService.save(discussion); 112 111 return "redirect:/discussions"; 113 112 } … … 137 136 if(personOp.isEmpty()) 138 137 return "redirect:/discussions"; 139 Discussion discussion = new Discussion(DiscussionType.P,title, text,Date.valueOf(LocalDate.now()),user,null,personOp.get(),new ArrayList<>()); 140 discussionService.save(discussion); 138 139 // Discussion discussion = new Discussion('P',title, text,Date.valueOf(LocalDate.now()),user,null,personOp.get()); 140 // discussionService.save(discussion); 141 141 return "redirect:/discussions"; 142 142 } -
src/main/java/com/wediscussmovies/project/web/controller/MovieController.java
r7fafead r3ded84d 2 2 3 3 import com.wediscussmovies.project.exception.MovieIdNotFoundException; 4 import com.wediscussmovies.project.model.Genre; 5 import com.wediscussmovies.project.model.Movie; 6 import com.wediscussmovies.project.model.Person; 4 import com.wediscussmovies.project.model.*; 5 7 6 import com.wediscussmovies.project.service.GenreService; 8 7 import com.wediscussmovies.project.service.MovieService; … … 33 32 public String getMovies(@RequestParam(required = false) String titleQuery, Model model){ 34 33 List<Movie> movies; 35 if(titleQuery == null || titleQuery.isEmpty()) {34 if(titleQuery == null ) { 36 35 movies = movieService.listAll(); 37 36 } … … 40 39 } 41 40 42 movies.sort(Movie.comparatorTitle);43 41 44 42 model.addAttribute("movies", movies); 45 43 model.addAttribute("contentTemplate", "moviesList"); 46 return " template";44 return "list"; 47 45 } 48 46 … … 59 57 60 58 @PostMapping("/{id}/delete") 61 public String addMovie(@PathVariable Longid){59 public String addMovie(@PathVariable Integer id){ 62 60 Optional<Movie> movie = movieService.findById(id); 63 61 if(movie.isPresent()){ 64 movieService.deleteById(movie.get().get Id());62 movieService.deleteById(movie.get().getMovieId()); 65 63 } 66 64 return "redirect:/movies"; … … 122 120 123 121 Movie movie = new Movie(title, description, image_url, airing_date, 124 rating, director , actorsList, genreList);122 rating, director.getPersonId()); 125 123 126 124 movieService.save(movie); … … 131 129 @PostMapping("/edit/confirm") 132 130 public String editMoviePost( 133 @RequestParam Longmovie_id,131 @RequestParam Integer movie_id, 134 132 @RequestParam String title, 135 133 @RequestParam String description, … … 198 196 movieService.deleteById(movie_id); 199 197 200 201 movie.setDirector(director);202 movie.setGenres(genreList);203 movie.setTitle(title);204 movie.setDescription(description);205 movie.setAringDate(airing_date);206 movie.setImageUrl(image_url);207 movie.setImbdRating(rating);198 // // movie.setActors(actorsList); 199 // movie.setDirector(director); 200 // movie.setGenres(genreList); 201 // movie.setTitle(title); 202 // movie.setDescription(description); 203 // movie.setAringDate(airing_date); 204 // movie.setImageUrl(image_url); 205 // movie.setImbdRating(rating); 208 206 209 207 movieService.save(movie); … … 213 211 214 212 @GetMapping("/{id}/edit") 215 public String editMovie(@PathVariable Longid, Model model){213 public String editMovie(@PathVariable Integer id, Model model){ 216 214 Movie movie = movieService.findById(id).orElseThrow(() -> new MovieIdNotFoundException(id)); 217 215 model.addAttribute("directors", personService.findAllDirectors()); -
src/main/java/com/wediscussmovies/project/web/controller/PersonsController.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.web.controller; 2 2 3 import com.wediscussmovies.project.model. Person;3 import com.wediscussmovies.project.model.*; 4 4 import com.wediscussmovies.project.model.enumerations.PersonType; 5 5 import com.wediscussmovies.project.service.PersonService; … … 15 15 16 16 @Controller 17 @RequestMapping(".")18 17 public class PersonsController { 19 18 private final PersonService personSerivce; … … 101 100 @RequestParam String name, 102 101 @RequestParam String surname, 103 @RequestParam PersonTypetype,102 @RequestParam Character type, 104 103 @RequestParam Date date_of_birth, 105 104 @RequestParam String image_url, … … 108 107 if(personSerivce.save(person)){ 109 108 String toWhere = "actors"; 110 if(type == PersonType.D)109 //if(type == PersonType.D) 111 110 toWhere = "directors"; 112 111 return "redirect:/"+toWhere; -
src/main/java/com/wediscussmovies/project/web/controller/ReplyController.java
r7fafead r3ded84d 1 1 package com.wediscussmovies.project.web.controller; 2 2 3 import com.wediscussmovies.project.model. Reply;3 import com.wediscussmovies.project.model.*; 4 4 import com.wediscussmovies.project.service.ReplyService; 5 import org.springframework.stereotype.Controller; 5 6 import org.springframework.ui.Model; 6 7 import org.springframework.web.bind.annotation.GetMapping; … … 11 12 import java.util.Optional; 12 13 14 @Controller 13 15 public class ReplyController { 14 16 private final ReplyService replyService; … … 37 39 reply.setText(text); 38 40 replyService.save(reply); 39 return "redirect:/discussions/"+reply.getDiscussion ().getId();41 return "redirect:/discussions/"+reply.getDiscussionId(); 40 42 } 41 43 } -
src/main/resources/application-prod.properties
r7fafead r3ded84d 1 spring.datasource.url=jdbc:postgresql://localhost: 5432/db_202122z_va_prj_wediscussmovies1 spring.datasource.url=jdbc:postgresql://localhost:9999/db_202122z_va_prj_wediscussmovies 2 2 spring.datasource.username=db_202122z_va_prj_wediscussmovies_owner 3 3 spring.datasource.password=7d8fb26b5697 -
src/main/resources/application.properties
r7fafead r3ded84d 1 1 spring.profiles.active=prod 2 3 server.port=9090 -
target/classes/application-prod.properties
r7fafead r3ded84d 1 spring.datasource.url=jdbc:postgresql://localhost: 5432/db_202122z_va_prj_wediscussmovies2 spring.datasource.username=db_202122z_va_prj_wediscussmovies_owner _1931131 spring.datasource.url=jdbc:postgresql://localhost:9999/db_202122z_va_prj_wediscussmovies 2 spring.datasource.username=db_202122z_va_prj_wediscussmovies_owner 3 3 spring.datasource.password=7d8fb26b5697 4 4 -
target/classes/application.properties
r7fafead r3ded84d 1 1 spring.profiles.active=prod 2 3 server.port=9090
Note:
See TracChangeset
for help on using the changeset viewer.