锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲毛片αv无线播放一区,亚洲视屏在线观看,久久亚洲国产中v天仙wwwhttp://www.tkk7.com/gen-sky/category/38662.html鍕ゆ濄佽皚璦銆佹厧琛屻佸帤縐佽杽鍙?/description>zh-cnSat, 18 Dec 2021 04:14:07 GMTSat, 18 Dec 2021 04:14:07 GMT60瑙e喅If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.闂http://www.tkk7.com/gen-sky/archive/2021/12/15/436093.html鏄熸湡浜?/dc:creator>鏄熸湡浜?/author>Wed, 15 Dec 2021 11:59:00 GMThttp://www.tkk7.com/gen-sky/archive/2021/12/15/436093.htmlhttp://www.tkk7.com/gen-sky/comments/436093.htmlhttp://www.tkk7.com/gen-sky/archive/2021/12/15/436093.html#Feedback0http://www.tkk7.com/gen-sky/comments/commentRss/436093.htmlhttp://www.tkk7.com/gen-sky/services/trackbacks/436093.html

springboot欏圭洰鎼緩閬囧埌闂錛屾彁渚涗袱縐嶈В鍐蟲柟娉曪細(xì)

“Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.”

琛ㄧず娌℃湁鎸囧畾鐨勬暟鎹簱url錛屾棤娉曢厤緗暟鎹簱

image.png

鏂規(guī)硶涓錛氫笉浣跨敤鏁版嵁婧愰厤緗?/h4>

鎴戜滑鍙互鍦⊿pring Boot欏圭洰鍏ュ彛娉ㄨВ澶勬坊鍔?exclude= {DataSourceAutoConfiguration.class}錛岃〃紺哄彇娑堟暟鎹簮鐨勮嚜鍔ㄩ厤緗?/p>

濡傦細(xì)

import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;   /**  * 琛ㄧず鍙栨秷鏁版嵁婧愮殑鑷姩閰嶇疆  */ @SpringBootApplication(exclude= {DataSourceAutoConfiguration.class}) public class SpringbootWeb01Application {       public static void main(String[] args) {         SpringApplication.run(SpringbootWeb01Application.class, args);     }   }  

鏂規(guī)硶浜岋細(xì)鎸夌収鎶ラ敊錛屾垜浠坊鍔犳暟鎹簱閰嶇疆

鎴戜滑闇瑕乤pplication.yml鏂囦歡涓嬫坊鍔犲涓嬮厤緗?/p>

server:   port: 8080 spring:   datasource:     url: jdbc:mysql://localhost:3306/springboottest     driver-class-name: com.mysql.cj.jdbc.Driver     password: 88888888     username: jiade 


浣滆咃細(xì)紼嬪簭鍛樻邯璦
閾炬帴錛歨ttps://www.jianshu.com/p/54db85befb01
鏉ユ簮錛氱畝涔?br />钁椾綔鏉冨綊浣滆呮墍鏈夈傚晢涓氳漿杞借鑱旂郴浣滆呰幏寰楁巿鏉冿紝闈炲晢涓氳漿杞借娉ㄦ槑鍑哄銆?/div>

]]>
欏甸潰杞彂鏂規(guī)硶 鍖呭惈鍏跺畠鏂囦歡http://www.tkk7.com/gen-sky/archive/2009/06/30/284809.html鏄熸湡浜?/dc:creator>鏄熸湡浜?/author>Tue, 30 Jun 2009 10:00:00 GMThttp://www.tkk7.com/gen-sky/archive/2009/06/30/284809.htmlhttp://www.tkk7.com/gen-sky/comments/284809.htmlhttp://www.tkk7.com/gen-sky/archive/2009/06/30/284809.html#Feedback0http://www.tkk7.com/gen-sky/comments/commentRss/284809.htmlhttp://www.tkk7.com/gen-sky/services/trackbacks/284809.html <head>
    <META HTTP-EQUIV="Refresh" CONTENT="0;URL=/example/hello.action">
</head>
2.
<jsp:forward page="/prosceniumAction.do?action=toIndex"></jsp:forward>




 <%@ include file="/commons/taglibs.jsp"%>







]]>
[杞琞jsp鐢熸垚闈?rùn)鎬侀〉紼嬪簭 http://www.tkk7.com/gen-sky/archive/2008/12/14/246203.html鏄熸湡浜?/dc:creator>鏄熸湡浜?/author>Sun, 14 Dec 2008 02:55:00 GMThttp://www.tkk7.com/gen-sky/archive/2008/12/14/246203.htmlhttp://www.tkk7.com/gen-sky/comments/246203.htmlhttp://www.tkk7.com/gen-sky/archive/2008/12/14/246203.html#Feedback0http://www.tkk7.com/gen-sky/comments/commentRss/246203.htmlhttp://www.tkk7.com/gen-sky/services/trackbacks/246203.html    
  import   java.io.*;  
  import   java.util.Map;  
   
  import   org.apache.commons.logging.Log;  
  import   org.apache.commons.logging.LogFactory;  
  import   freemarker.template.*;  
   
  public   class   MakeHtmlFile   {  
   
  private   final   Log   logger   =   LogFactory.getLog(getClass());  
   
  private   Configuration   freemarkerCfg   =   null;  
   
  private   String   templatePath   =   "";  
   
  private   String   realBuildPath   =   "";  
   
  /**  
    *    
    *   @param   realBuildPath鏍圭洰褰曠粷瀵硅礬寰? 
    *   @param   templatePath妯℃澘鐩稿璺緞錛屼笉鍖呭惈妯℃澘鍚嶇О  
    */  
  public   MakeHtmlFile(String   realBuildPath,   String   templatePath)   {  
  this.templatePath   =   templatePath;  
  this.realBuildPath   =   realBuildPath;  
  setTemplatePath();  
  }  
   
  /**  
    *    
    *   @param   templatePath:妯℃澘緇濆璺緞  
    */  
  private   void   setTemplatePath()   {  
  //   璁劇疆freemarker鐨勫弬鏁? 
  freemarkerCfg   =   new   Configuration();  
  try   {  
  File   file   =   new   File(realBuildPath+templatePath);  
  freemarkerCfg  
  .setDirectoryForTemplateLoading(file);  
  freemarkerCfg.setObjectWrapper(new   DefaultObjectWrapper());  
  freemarkerCfg.setDefaultEncoding("UTF-8");  
  }   catch   (IOException   ex)   {  
  System.out.println("No   Directory   found,please   check   you   config."n"  
  +   realBuildPath+templatePath);  
  }  
  }  
   
  /**  
    *   鐢熸垚闈?rùn)鎬佹枃浠? 
    *    
    *   @param   templateFileName  
    *                         妯$増鍚嶇Оeg:(biz/order.ftl)  
    *   @param   propMap  
    *                         鐢ㄤ簬澶勭悊妯℃澘鐨勫睘鎬bject鏄犲皠  
    *   @param   htmlFilePath  
    *                         瑕佺敓鎴愮殑闈?rùn)鎬佹枃浠剁殑璺緞,鐩稿璁劇疆涓殑鏍硅礬寰?渚嬪   "/biz/2006/5/"  
    *   @param   htmlFileName  
    *                         瑕佺敓鎴愮殑鏂囦歡鍚?渚嬪   "123.htm"  
    *   @return  
    */  
  public   boolean   buildHtml(String   templateFileName,   Map   propMap,  
  String   htmlFilePath,   String   htmlFileName)   {  
  try   {  
  Template   template   =   freemarkerCfg.getTemplate(templateFileName);  
  template.setEncoding("UTF-8");  
  //   鍒涘緩鐢熸垚鏂囦歡鐩綍  
  creatDirs(realBuildPath,   htmlFilePath);  
  File   htmlFile   =   new   File(realBuildPath   +   htmlFilePath  
  +   htmlFileName);  
  Writer   out   =   new   BufferedWriter(new   OutputStreamWriter(  
  new   FileOutputStream(htmlFile),   "UTF-8"));  
  template.process(propMap,   out);  
  out.flush();  
  return   true;  
  }   catch   (TemplateException   ex)   {  
  ex.printStackTrace();  
  logger.error("Build   Error"   +   templateFileName,   ex);  
  return   false;  
  }   catch   (IOException   e)   {  
  logger.error("Build   Error"   +   templateFileName,   e);  
  return   false;  
  }  
   
  }  
   
  /**  
    *   鍒涘緩澶氱駭鐩綍  
    *    
    *   @param   aParentDir  
    *                         String  
    *   @param   aSubDir  
    *                         浠?  /   寮澶? 
    *   @return   boolean   鏄惁鎴愬姛  
    */  
  public   static   boolean   creatDirs(String   aParentDir,   String   aSubDir)   {  
  File   aFile   =   new   File(aParentDir);  
  if   (aFile.exists())   {  
  File   aSubFile   =   new   File(aParentDir   +   aSubDir);  
  if   (!aSubFile.exists())   {  
  return   aSubFile.mkdirs();  
  }   else   {  
  return   true;  
  }  
  }   else   {  
  return   false;  
  }  
  }  
  } 


鍒潃鎬ワ紝絳夋垜瀛︿細(xì)浜?jiǎn)锛屾垜涓姝ユ璇存槑涓浠涔堟剰鎬?


]]>
JSTL 鏍囧噯鏍囩璇存槑http://www.tkk7.com/gen-sky/archive/2008/12/08/245014.html鏄熸湡浜?/dc:creator>鏄熸湡浜?/author>Mon, 08 Dec 2008 05:45:00 GMThttp://www.tkk7.com/gen-sky/archive/2008/12/08/245014.htmlhttp://www.tkk7.com/gen-sky/comments/245014.htmlhttp://www.tkk7.com/gen-sky/archive/2008/12/08/245014.html#Feedback0http://www.tkk7.com/gen-sky/comments/commentRss/245014.htmlhttp://www.tkk7.com/gen-sky/services/trackbacks/245014.html JSTL  鏍囧噯鏍囩搴撻渶瑕佷簩涓牳蹇?jī)jar 鍖呮墠鑳戒嬌鐢ㄣ?br /> jstl.jar  鍜?tandard.jar 鍖?/strong>

鍦↗SP欏甸潰涓婂啓:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

1銆?寰幆鎺у埗鏍囩

<c:forEach>
<c:forEach>鏍囩鐢ㄤ簬閫氱敤鏁版嵁錛屽畠鏈変互涓嬪睘鎬?灞?鎬?鎻?榪?鏄惁蹇呴』 緙虹渷鍊?

items 榪涜寰幆鐨勯」鐩?鍚?鏃?
begin 寮濮嬫潯浠?鍚?0
end 緇撴潫鏉′歡 鍚?闆嗗悎涓殑鏈鍚庝竴涓」鐩?
step 姝ラ暱 鍚?1
var 浠h〃褰撳墠欏圭洰鐨勫彉閲忓悕 鍚?鏃?
varStatus 鏄劇ず寰幆鐘舵佺殑鍙橀噺 瀹冪殑灞炴у寘鎷細(xì)index 褰撳墠ID錛宑ount 涓鍏辨湁澶氬皯鏁版嵁銆?br />
2銆佸驚鐜壒鍒鍙?br /> <c:forTokens>
<c:forTokens>鏍囩鏈変互涓嬪睘鎬?灞?鎬?鎻?榪?鏄惁蹇呴』 緙虹渷鍊?
items 榪涜寰幆鐨勯」鐩?鏄?鏃?
delims 鍒嗗壊絎?鏄?鏃?
begin 寮濮嬫潯浠?鍚?0
end 緇撴潫鏉′歡 鍚?闆嗗悎涓殑鏈鍚庝竴涓」鐩?
step 姝ラ暱 鍚?1
var 浠h〃褰撳墠欏圭洰鐨勫彉閲忓悕 鍚?鏃?
varStatus 鏄劇ず寰幆鐘舵佺殑鍙橀噺 鍚?鏃?
3.鍒ゆ柇闆嗗悎涓嶄負(fù)絀?br />
${user}涓洪泦鍚?
<c:if test="${empty user}">
鏃犱俊鎭紒
</c:if>
<c:if test="${!empty user}">
鍏跺畠...
</c:if>




]]>
主站蜘蛛池模板: 亚洲色图校园春色| 久久av免费天堂小草播放| 四虎永久免费网站免费观看| 免费看无码特级毛片| 亚洲男人的天堂久久精品| 亚洲精品无码AV中文字幕电影网站 | 国产网站免费观看| 你是我的城池营垒免费看 | fc2成年免费共享视频18| 亚洲妇女水蜜桃av网网站| 亚洲国产精品一区二区三区久久 | 免费国产成人高清在线观看网站| 黄色免费在线网址| 亚洲欧洲国产精品久久| 亚洲爽爽一区二区三区| 岛国av无码免费无禁网站| 在线观看片免费人成视频无码| 亚洲国产精品无码中文lv| 亚洲黄色在线视频| 亚洲一级特黄大片无码毛片| 成人av免费电影| 免费A级毛片在线播放| EEUSS影院WWW在线观看免费| 亚洲中文字幕无码爆乳app| 亚洲国产精品国自产拍电影| 亚洲福利视频一区二区| 亚洲第一网站免费视频| 在线观看片免费人成视频无码| 另类图片亚洲校园小说区| 亚洲中文字幕在线无码一区二区| 亚洲中文字幕无码久久精品1| 午夜dj免费在线观看| h片在线免费观看| 黄色片免费在线观看| 一级看片免费视频| 鲁死你资源站亚洲av| 亚洲伊人精品综合在合线| 久久亚洲AV午夜福利精品一区| 亚洲av成人一区二区三区在线观看| 久久WWW色情成人免费观看| 最近免费中文字幕大全免费|