setup done.
This commit is contained in:
39
src/main/resources/application.yaml
Normal file
39
src/main/resources/application.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
elex:
|
||||
view:
|
||||
template:
|
||||
default: "[!UNDEFINED]"
|
||||
server:
|
||||
port: 8080
|
||||
spring:
|
||||
application:
|
||||
name: Freesia
|
||||
datasource:
|
||||
url: jdbc:mariadb://localhost:3306/freesia
|
||||
driver-class-name: org.mariadb.jdbc.Driver
|
||||
username: elex
|
||||
password: test
|
||||
jpa:
|
||||
open-in-view: false
|
||||
generate-ddl: true
|
||||
show-sql: true
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
security:
|
||||
user:
|
||||
name: elex
|
||||
password: test
|
||||
logging:
|
||||
path: ${user.home}/logs/freesia
|
||||
level:
|
||||
root: debug
|
||||
|
||||
---
|
||||
|
||||
spring:
|
||||
config:
|
||||
active:
|
||||
on-profile: production
|
||||
logging:
|
||||
path: /var/log/freesia
|
||||
level:
|
||||
root: info
|
||||
0
src/main/resources/banner.txt
Normal file
0
src/main/resources/banner.txt
Normal file
25
src/main/resources/logback-spring.xml
Normal file
25
src/main/resources/logback-spring.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~ Copyright (c) 2021. Elex co.,ltd. All rights reserved.
|
||||
~ developed by <developer@elex-project.com>
|
||||
~
|
||||
-->
|
||||
|
||||
<configuration>
|
||||
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
|
||||
<include resource="org/springframework/boot/logging/logback/console-appender.xml"/>
|
||||
|
||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<logger name="com.elex_project.freesia" level="debug" additivity="false">
|
||||
<appender-ref ref="CONSOLE"/>
|
||||
</logger>
|
||||
<root level="info">
|
||||
<appender-ref ref="CONSOLE"/>
|
||||
</root>
|
||||
|
||||
</configuration>
|
||||
1
src/main/resources/templates/fragments/a.mustache
Normal file
1
src/main/resources/templates/fragments/a.mustache
Normal file
@@ -0,0 +1 @@
|
||||
<p>Haha</p>
|
||||
9
src/main/resources/templates/home.mustache
Normal file
9
src/main/resources/templates/home.mustache
Normal file
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>Hello</p>
|
||||
{{>fragments/a}}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user