springboot获取原生js请求_springboot跳转原生html
項(xiàng)目結(jié)構(gòu)
pom
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
com.jinzhending
Order
1.0-SNAPSHOT
war
Order Maven Webapp
http://www.example.com
UTF-8
1.7
1.7
org.springframework.boot
spring-boot-starter-parent
2.0.1.RELEASE
org.springframework.boot
spring-boot-starter-web
org.projectlombok
lombok
org.springframework.boot
spring-boot-starter-aop
org.springframework.boot
spring-boot-starter-log4j
1.3.8.RELEASE
mysql
mysql-connector-java
5.1.39
org.mybatis.spring.boot
mybatis-spring-boot-starter
1.3.1
com.github.pagehelper
pagehelper-spring-boot-starter
1.2.5
javax.servlet
jstl
org.springframework.boot
spring-boot-starter-freemarker
src/main/java
**/*.xml
src/main/resources
**/*.properties
**/*.yml
false
Order
maven-clean-plugin
3.1.0
maven-resources-plugin
3.0.2
maven-compiler-plugin
3.8.0
maven-surefire-plugin
2.22.1
maven-war-plugin
3.2.2
maven-install-plugin
2.5.2
maven-deploy-plugin
2.8.2
application.yml
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
username: root
password: root
url: jdbc:mysql://localhost:3306/XXXXX?characterEncoding=UTF-8
jpa:
show-sql: true
freemarker:
template-loader-path: /WEB-INF/
suffix: .html
# 如果使用jsp頁(yè)面請(qǐng)用下面的注釋
# mvc:
# view:
# prefix: /WEB-INF/
# suffix: .html
mybatis:
#實(shí)體類所在位置
type-aliases-package: com.XXXX.pojo
#打印sql語句
#com.XXXX.dao 寫的dao接口所在的包
logging:
level:
com.bdqn.dao: debug
controller
@Controller//注意這是controller
public class CustomerService {
@RequestMapping("register")
public String intoRegister(){
return "register";
}
總結(jié)
以上是生活随笔為你收集整理的springboot获取原生js请求_springboot跳转原生html的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python爬虫代码模板_Python:
- 下一篇: java buffer nio_Java