http://websystique.com/spring-boot/spring-boot-angularjs-spring-data-jpa-crud-app-example/我从教程中导入了此项目,它运行完美无误。但是为了查看它使用了index.ftl,它在eclipse中显示了404错误。弹簧引导angularjs弹簧数据jpa crud-app示例在日食中获取404错误
我application.yml文件
---
server:
port: 8080
contextPath: /SpringBootCRUDApp
---
spring:
profiles: local, default
datasource:
sampleapp:
url: jdbc:h2:~/emp
username: sa
password:
driverClassName: org.h2.Driver
defaultSchema:
maxPoolSize: 10
hibernate:
hbm2ddl.method: create-drop
show_sql: true
format_sql: true
dialect: org.hibernate.dialect.H2Dialect
---
spring:
profiles: prod
datasource:
sampleapp:
url: jdbc:mysql://localhost:3306/emp
username: root
password: root
driverClassName: com.mysql.jdbc.Driver
defaultSchema:
maxPoolSize: 20
hibernate:
hbm2ddl.method: update
show_sql: true
format_sql: true
dialect: org.hibernate.dialect.MySQLDialect
这适用于我。谢谢 – techsavvy
好标记答案然后。 –