diff --git a/README.md b/README.md index c2182b5..e9d0f5e 100644 --- a/README.md +++ b/README.md @@ -70,3 +70,19 @@ so you must use an existing copy of a ``recipes.db`` file. ## Note on JavaServer Faces The Spring Boot version supersedes a previous port based on the Apache Tobago JSF tag library. It uses the PrimeFaces JSF tag library, as presently that platform has better Spring Boot support. Plus Tobago is quite different from most of the extension tag libraries to the point where it almost isn't JSF. + +## New in Version 2.0 + +### Database change + +The backing database as defined in the project is now MySQL +instead of SQLite. The SQLite JDBC driver may have been a bit +casual about a few things compared to MySQL. The JPA should work +for either database now, although it should be noted that SQLite +isn't really intended for multi-user webapps and should only be +employed when you run this app on your local desktop. + +### Improved graphics support + +A lot of recipe websites publish images in webp form. Support +for webp has now been added. \ No newline at end of file diff --git a/application.properties b/application.properties index db88985..8a40528 100644 --- a/application.properties +++ b/application.properties @@ -8,6 +8,7 @@ joinfaces.jsf.webapp-resources-directory=/resources # This works. Note that ONLY THE FIRST theme set will work unless # you delete the old primefaces.THEME from ServletContext server.servlet.context-parameters.primefaces.THEME=omega +server.servlet.session.timeout=30m spring.thymeleaf.enabled=false server.error.whitelabel.enabled=false diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 73ac2df..4526ce4 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,13 +1,19 @@ # -# Application YML is used in production. /application.properties +# Application YML is used in production, filed under /BOOT-INF/classes. +# application.properties in the project root (working dir) # is used in test. # +# application config in execution current directory or ./config +# have higher precedence, and the command line is ultimate: +# +# https://docs.spring.io/spring-boot/docs/2.1.9.RELEASE/reference/html/boot-features-external-config.html +# spring: datasource: #url: jdbc:sqlite:${home}/recipes.db url: jdbc:mysql:dbase/recipes # options: ${env} values - driverClassName: ork.mysql.jdbc.Driver + driverClassName: org.mysql.jdbc.Driver username: recipes password: yumyumyum jpa: @@ -16,6 +22,11 @@ spring: #database-platform: org.sqlite.hibernate.dialect.SQLiteDialect database-platform: org.hibernate.dialect.MySQLDialect +server: + servlet: + session: + timeout: '30m' + gourmet: password: file: .gourmetpw