File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/org/apache/struts2/showcase/utils Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- db.url =jdbc:postgresql://host.docker.internal:5432/struts
1+ db_url =jdbc:postgresql://host.docker.internal:5432/struts
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ public class HibernateUtils {
88
99 public static Session getSession () {
1010 final Configuration configuration = new Configuration ().configure ();
11- setPropIfEnv (configuration , "hibernate.connection.username" , "db.username " );
12- setPropIfEnv (configuration , "hibernate.connection.password" , "db.password " );
13- setPropIfEnv (configuration , "hibernate.connection.url" , "db.url " );
11+ setPropIfEnv (configuration , "hibernate.connection.username" , "db_username " );
12+ setPropIfEnv (configuration , "hibernate.connection.password" , "db_password " );
13+ setPropIfEnv (configuration , "hibernate.connection.url" , "db_url " );
1414
1515 SessionFactory sessionFactory = configuration .buildSessionFactory ();
1616 return sessionFactory .openSession ();
You can’t perform that action at this time.
0 commit comments