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
好標記答案然後。 –